From patchwork Thu Jun 23 08:09:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajkumar Manoharan X-Patchwork-Id: 908452 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p5N89TEd029197 for ; Thu, 23 Jun 2011 08:09:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756520Ab1FWIJ1 (ORCPT ); Thu, 23 Jun 2011 04:09:27 -0400 Received: from mail.atheros.com ([12.19.149.2]:27113 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754769Ab1FWIJ0 (ORCPT ); Thu, 23 Jun 2011 04:09:26 -0400 Received: from mail.atheros.com ([10.234.20.107]) by sidewinder.atheros.com for ; Thu, 23 Jun 2011 01:08:50 -0700 Received: from mail.atheros.com (10.12.4.94) by SC1EXHC-02.global.atheros.com (10.234.20.107) with Microsoft SMTP Server (TLS) id 8.2.213.0; Thu, 23 Jun 2011 01:09:25 -0700 Received: by mail.atheros.com (sSMTP sendmail emulation); Thu, 23 Jun 2011 13:39:22 +0530 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan Subject: [PATCH 2/2] ath9k: Use PS wrappers in beacon tasklet Date: Thu, 23 Jun 2011 13:39:14 +0530 Message-ID: <1308816554-2910-2-git-send-email-rmanoharan@atheros.com> X-Mailer: git-send-email 1.7.5.2 In-Reply-To: <1308816554-2910-1-git-send-email-rmanoharan@atheros.com> References: <1308816554-2910-1-git-send-email-rmanoharan@atheros.com> MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 23 Jun 2011 08:09:30 +0000 (UTC) From: Rajkumar Manoharan Ensure that hw is awake before accessing registers during beacon generation. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath9k/beacon.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c index 0b6e3b6..4abadc6 100644 --- a/drivers/net/wireless/ath/ath9k/beacon.c +++ b/drivers/net/wireless/ath/ath9k/beacon.c @@ -364,6 +364,7 @@ void ath_beacon_tasklet(unsigned long data) int slot; u32 bfaddr, bc = 0; + ath9k_ps_wakeup(sc); /* * Check if the previous beacon has gone out. If * not don't try to post another, skip this period @@ -388,6 +389,7 @@ void ath_beacon_tasklet(unsigned long data) ath_reset(sc, true); } + ath9k_ps_restore(sc); return; } @@ -471,6 +473,7 @@ void ath_beacon_tasklet(unsigned long data) spin_unlock_bh(&sc->sc_pcu_lock); } } + ath9k_ps_restore(sc); } static void ath9k_beacon_init(struct ath_softc *sc,