From patchwork Mon Mar 2 09:09:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 5910751 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 098469F36A for ; Mon, 2 Mar 2015 09:10:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3606D2020E for ; Mon, 2 Mar 2015 09:10:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5D50F201EF for ; Mon, 2 Mar 2015 09:10:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753593AbbCBJKc (ORCPT ); Mon, 2 Mar 2015 04:10:32 -0500 Received: from mail-lb0-f179.google.com ([209.85.217.179]:35033 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199AbbCBJK0 (ORCPT ); Mon, 2 Mar 2015 04:10:26 -0500 Received: by lbjf15 with SMTP id f15so696397lbj.2 for ; Mon, 02 Mar 2015 01:10:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8FSvh3b5NKBNI1Tg3JZQaW506mnT2b0Ev84FtijviJw=; b=3/UBBFutBwnPTxT4NSuSjeD6dpnG6oatxmdlpsZrLWBIy8cFSdX0qyuTJxmWW4XPdQ ZPO4DIZtbe9zZVgFS1RmSqtOJr9tsCgwqp4tDHALdbFyaobkqcoTXWSda2zmndOYn6ZQ 5E8tIiiIIMq1cjPZE/YnuVJAgJ7AKTb407dhE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8FSvh3b5NKBNI1Tg3JZQaW506mnT2b0Ev84FtijviJw=; b=JlFm00tIBRxYWJWapId6KAYOFCXdLWm+bLsb7NCCNxQkE5+dGoM5kH6Chdo5D0Gs0H LtsqbF7G4l4B/j1KQ7tract+rDfVuo30ijleh3g6V8NKjzDtNoEgMrKGo/45mPGg9H2h xtsXJ12dPX1eNLsssuMJhf3CJKXMTbUuNE+1WtxJ7YD5SY+mB0Berwi8rd2lB2IWQOUS z0EK+CNGjIED2lpustGPT2f9+vX4mxtEwkgyRAUIJKc354IiMV9tdh1Akkj94wAuYYns UUsbB/sb25VXKmzAmG95yxm2LCxGPIXxdGRpbL2nBabxXoXwYgJlw7BdVAySovFHp0yK lJYA== X-Gm-Message-State: ALoCoQmJ/zh3n+t2eyZyPMxQub/mmS/R+//uuPKSRbgVFNSOelCbIH9XGN7foqoKs933G86TSLiskg5L/vflv46vwNcTRYKw1xNZR6uK+sMkxo4Z5Ds9wD/AKziJR/13+JSieF+IvodQ X-Received: by 10.152.207.12 with SMTP id ls12mr18248059lac.14.1425287424997; Mon, 02 Mar 2015 01:10:24 -0800 (PST) Received: from bob.homerouter.cpe (apn-77-113-114-198.dynamic.gprs.plus.pl. [77.113.114.198]) by mx.google.com with ESMTPSA id ud4sm2407775lac.28.2015.03.02.01.10.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Mar 2015 01:10:24 -0800 (PST) From: Michal Kazior To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Michal Kazior Subject: [PATCH 3/3] ath10k: re-enable pci device upon resume Date: Mon, 2 Mar 2015 10:09:04 +0100 Message-Id: <1425287344-30594-3-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1425287344-30594-1-git-send-email-michal.kazior@tieto.com> References: <1425287344-30594-1-git-send-email-michal.kazior@tieto.com> X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This balances out pci_disable_device() from ath10k_pci_hif_suspend(). Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/pci.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c index d06b264..1295345 100644 --- a/drivers/net/wireless/ath/ath10k/pci.c +++ b/drivers/net/wireless/ath/ath10k/pci.c @@ -2079,6 +2079,12 @@ static int ath10k_pci_hif_resume(struct ath10k *ar) return ret; } + ret = pci_enable_device(pdev); + if (ret) { + ath10k_err(ar, "failed to enable pci device: %d\n", ret); + return ret; + } + pci_restore_state(pdev); /* Suspend/Resume resets the PCI configuration space, so we have to