From patchwork Thu Aug 13 04:04:37 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sujith X-Patchwork-Id: 40975 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7D44Isc018106 for ; Thu, 13 Aug 2009 04:04:19 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751059AbZHMEEQ (ORCPT ); Thu, 13 Aug 2009 00:04:16 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751913AbZHMEEP (ORCPT ); Thu, 13 Aug 2009 00:04:15 -0400 Received: from mail.atheros.com ([12.36.123.2]:52950 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751059AbZHMEEO (ORCPT ); Thu, 13 Aug 2009 00:04:14 -0400 Received: from mail.atheros.com ([10.10.20.105]) by sidewinder.atheros.com for ; Wed, 12 Aug 2009 21:04:16 -0700 Received: from CHEXHC-01.global.atheros.com (10.12.0.100) by SC1EXHC-01.global.atheros.com (10.10.20.104) with Microsoft SMTP Server (TLS) id 8.0.751.0; Wed, 12 Aug 2009 21:04:16 -0700 Received: from neuromancer (10.12.4.103) by CHEXHC-01.global.atheros.com (10.12.0.100) with Microsoft SMTP Server (TLS) id 8.0.751.0; Thu, 13 Aug 2009 09:34:14 +0530 From: Sujith MIME-Version: 1.0 Message-ID: <19075.37077.961425.728031@gargle.gargle.HOWL> Date: Thu, 13 Aug 2009 09:34:37 +0530 To: X-Mailer: VM 8.0.12 under 23.1.1 (x86_64-unknown-linux-gnu) CC: Subject: [PATCH 4/4] ath9k: Set HW state properly Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patch fixes a bug in ath9k_stop() where the HW was not put into FULL_SLEEP state. Not doing so will cause issues in suspend-resume and the HW will not respond to chip resets. Signed-off-by: Sujith --- drivers/net/wireless/ath/ath9k/main.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 4a6f2d2..f452c20 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -2140,6 +2140,7 @@ static void ath9k_stop(struct ieee80211_hw *hw) /* disable HAL and put h/w to sleep */ ath9k_hw_disable(sc->sc_ah); ath9k_hw_configpcipowersave(sc->sc_ah, 1); + ath9k_hw_setpower(sc->sc_ah, ATH9K_PM_FULL_SLEEP); sc->sc_flags |= SC_OP_INVALID;