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: 5910781 Return-Path: X-Original-To: patchwork-ath10k@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 A35419F36A for ; Mon, 2 Mar 2015 09:10:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E28C2201EF for ; Mon, 2 Mar 2015 09:10:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3236C2020F for ; Mon, 2 Mar 2015 09:10:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YSMNH-0007zH-4Q; Mon, 02 Mar 2015 09:10:51 +0000 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YSMND-0007tW-9w for ath10k@lists.infradead.org; Mon, 02 Mar 2015 09:10:48 +0000 Received: by lams18 with SMTP id s18so28862533lam.11 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=XXx+axLDhcLgpDy/NsbI0RR1kHzmwEGEjo2e8yN8c8dd5sia+FGlbDVKJMkiyC1dlI boBR6pPwGMQy9ZVFedlgTN2WQeXi7+DfDmMH6AQAg29WH5dfSNaUrSd+wGdi8dXSdY+C EW4Xzlw/Pfr2G3zfU4nbkld2Tvo72p5JzGFdni0jKXpn3TtKaPxyVobJf7HLK9G3gXiE WzIKVgBEqsfgunOUjuDo4eS6uWsBNevsou7vGXxSwR6ibSQTUh0vaSbwmZfxQa9uzqQg M/BofSdslzWMKSF5+s0sFD+dnkaDb79X5QKl07ub/oS4ECMwVhcYP7PLDpX+AZ8UDKR4 KKFQ== X-Gm-Message-State: ALoCoQlU+h12v3kbij04WTZbRrvMdmZMeSnRInVEEJomtcozVhKZZBnMeQ1HA6oQeRaXgoP/wpLstTcjYD2K9wLUXUVm80nKwYExWOo+bh+F8427vKzaOlO3NERomUCUvqu9BEWKilvxcB7h7r9mb0dE1znMBl66TlWjq3JKx/V4Wb9F//5tYWI= 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150302_011047_535974_2C46581C X-CRM114-Status: UNSURE ( 7.42 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.8 (/) Cc: linux-wireless@vger.kernel.org, Michal Kazior X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, 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