From patchwork Thu Aug 9 07:07:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Manoharan, Rajkumar" X-Patchwork-Id: 1299011 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3F0B13FC23 for ; Thu, 9 Aug 2012 07:05:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755439Ab2HIHF5 (ORCPT ); Thu, 9 Aug 2012 03:05:57 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:53120 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755422Ab2HIHFz (ORCPT ); Thu, 9 Aug 2012 03:05:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1344495956; x=1376031956; h=from:to:cc:subject:date:message-id:mime-version; bh=1MVDsqoRd138FjOe/+qXr59xzWmT3IB3q38+K0hNKME=; b=hLpx1ArKvcr32f8fGDxqpGog7zrLI+Y+8xk3WBlPyXE/OQ1JtEsOpaoH 3mVzgX3LJ772pBfNx7uTOF4A/C/YqbPgtVJp7sresvYgB70pbgOL/Nnpk sHKVASFPxR2cQatg96hEub8/jvLTmmnh0h4FibYqTLkCdZGwAsphH3jd+ M=; X-IronPort-AV: E=McAfee;i="5400,1158,6797"; a="220572567" Received: from ironmsg03-l.qualcomm.com ([172.30.48.18]) by wolverine02.qualcomm.com with ESMTP; 09 Aug 2012 00:05:56 -0700 X-IronPort-AV: E=Sophos;i="4.77,738,1336374000"; d="scan'208";a="302936867" Received: from nasanexhc07.na.qualcomm.com ([172.30.39.190]) by Ironmsg03-L.qualcomm.com with ESMTP/TLS/RC4-SHA; 09 Aug 2012 00:05:51 -0700 Received: from qcmail1.qualcomm.com (172.30.39.5) by qcmail1.qualcomm.com (172.30.39.190) with Microsoft SMTP Server (TLS) id 14.2.309.2; Thu, 9 Aug 2012 00:05:48 -0700 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Thu, 09 Aug 2012 12:37:26 +0530 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan , Subject: [PATCH] ath9k: stop btcoex on device suspend Date: Thu, 9 Aug 2012 12:37:26 +0530 Message-ID: <1344496046-2177-1-git-send-email-rmanohar@qca.qualcomm.com> X-Mailer: git-send-email 1.7.11.4 MIME-Version: 1.0 X-Originating-IP: [172.30.39.5] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org During suspend, the device will be moved to FULLSLEEP state. As btcoex is never been stopped, the btcoex timer is running and tries to access hw on fullsleep state. Fix that. Cc: stable@vger.kernel.org Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath9k/pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c index d455de9..a978984 100644 --- a/drivers/net/wireless/ath/ath9k/pci.c +++ b/drivers/net/wireless/ath/ath9k/pci.c @@ -321,6 +321,7 @@ static int ath_pci_suspend(struct device *device) * Otherwise the chip never moved to full sleep, * when no interface is up. */ + ath9k_stop_btcoex(sc); ath9k_hw_disable(sc->sc_ah); ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_FULL_SLEEP);