From patchwork Tue Nov 20 12:59:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Manoharan, Rajkumar" X-Patchwork-Id: 1773311 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 790B6DF230 for ; Tue, 20 Nov 2012 13:00:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752250Ab2KTM76 (ORCPT ); Tue, 20 Nov 2012 07:59:58 -0500 Received: from sabertooth01.qualcomm.com ([65.197.215.72]:25561 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751883Ab2KTM75 (ORCPT ); Tue, 20 Nov 2012 07:59:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1353415476; x=1384951476; h=from:to:cc:subject:date:message-id:mime-version; bh=U9CTMmK9rPyta5/sKlQLHCwzOrx37bSUIbU3w/JKZOU=; b=COPstQiy7ipSQerq4R0Kl/FwF11pHtzyGezsQQIAnzQ2vOiRBae6NZ+v dgxwfg6mJN/JThGHpQFeYFF5XRMxaCom0J/ek9vtjh7SRS38kvvH4KBuA hKVWYoJVli/9n1HPITelrUxfjmi7EjoNxMSQuhe+lBX0nzGmWSZOL/ppJ o=; X-IronPort-AV: E=McAfee;i="5400,1158,6901"; a="8069127" Received: from ironmsg01-lv.qualcomm.com ([10.47.202.180]) by sabertooth01.qualcomm.com with ESMTP; 20 Nov 2012 04:44:34 -0800 X-IronPort-AV: E=McAfee;i="5400,1158,6901"; a="2014776" Received: from nasanexhc04.na.qualcomm.com ([172.30.48.17]) by ironmsg01-lv.qualcomm.com with ESMTP/TLS/RC4-SHA; 20 Nov 2012 04:59:55 -0800 Received: from qcmail1.qualcomm.com (172.30.48.1) by qcmail1.qualcomm.com (172.30.48.17) with Microsoft SMTP Server (TLS) id 14.2.318.4; Tue, 20 Nov 2012 04:59:53 -0800 Received: by qcmail1.qualcomm.com (sSMTP sendmail emulation); Tue, 20 Nov 2012 18:30:03 +0530 From: Rajkumar Manoharan To: CC: , Rajkumar Manoharan Subject: [PATCH 1/3] ath9k: Process FATAL interrupts at first Date: Tue, 20 Nov 2012 18:29:59 +0530 Message-ID: <1353416401-5328-1-git-send-email-rmanohar@qca.qualcomm.com> X-Mailer: git-send-email 1.8.0 MIME-Version: 1.0 X-Originating-IP: [172.30.48.1] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org FATAL and WATCHDOG interrupts should be processed first followed by others. Signed-off-by: Rajkumar Manoharan --- drivers/net/wireless/ath/ath9k/main.c | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 9594b6f..e59d8e3 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -494,17 +494,6 @@ irqreturn_t ath_isr(int irq, void *dev) if (status & SCHED_INTR) sched = true; -#ifdef CONFIG_PM_SLEEP - if (status & ATH9K_INT_BMISS) { - if (atomic_read(&sc->wow_sleep_proc_intr) == 0) { - ath_dbg(common, ANY, "during WoW we got a BMISS\n"); - atomic_inc(&sc->wow_got_bmiss_intr); - atomic_dec(&sc->wow_sleep_proc_intr); - } - ath_dbg(common, INTERRUPT, "beacon miss interrupt\n"); - } -#endif - /* * If a FATAL or RXORN interrupt is received, we have to reset the * chip immediately. @@ -523,7 +512,15 @@ irqreturn_t ath_isr(int irq, void *dev) goto chip_reset; } - +#ifdef CONFIG_PM_SLEEP + if (status & ATH9K_INT_BMISS) { + if (atomic_read(&sc->wow_sleep_proc_intr) == 0) { + ath_dbg(common, ANY, "during WoW we got a BMISS\n"); + atomic_inc(&sc->wow_got_bmiss_intr); + atomic_dec(&sc->wow_sleep_proc_intr); + } + } +#endif if (status & ATH9K_INT_SWBA) tasklet_schedule(&sc->bcon_tasklet);