Return-path: Received: from mail.atheros.com ([12.19.149.2]:15051 "EHLO mail.atheros.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752930Ab0JMGnP (ORCPT ); Wed, 13 Oct 2010 02:43:15 -0400 Received: from mail.atheros.com ([10.10.20.108]) by sidewinder.atheros.com for ; Tue, 12 Oct 2010 23:43:05 -0700 Date: Wed, 13 Oct 2010 12:13:08 +0530 From: Senthil Balasubramanian To: Rajkumar Manoharan CC: Felix Fietkau , "linux-wireless@vger.kernel.org" , "linville@tuxdriver.com" , Luis Rodriguez Subject: Re: [PATCH 3/3] ath9k: add missing locking around ath9k_hw_proc_mib_event Message-ID: <20101013064308.GA2878@senthil-lnx.users.atheros.com> References: <1286892483-71182-1-git-send-email-nbd@openwrt.org> <1286892483-71182-2-git-send-email-nbd@openwrt.org> <1286892483-71182-3-git-send-email-nbd@openwrt.org> <20101013052030.GA9021@vmraj-lnx.users.atheros.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" In-Reply-To: <20101013052030.GA9021@vmraj-lnx.users.atheros.com> Sender: linux-wireless-owner@vger.kernel.org List-ID: On Wed, Oct 13, 2010 at 10:50:31AM +0530, Rajkumar Manoharan wrote: > On Tue, Oct 12, 2010 at 07:38:03PM +0530, Felix Fietkau wrote: > > + spin_lock(&common->cc_lock); > > ath9k_hw_proc_mib_event(ah); > > + spin_unlock(&common->cc_lock); > > ath9k_hw_set_interrupts(ah, ah->imask); > > } > > > shouldn't we lock ath9k_ani_reset which also restarts ani? Remember syncrhonizing ath9k_ani_reset() with spin_lock requires careful review as ath9k_htc uses mutex lock somewhere in the ani reset path. > > - Rajkumar > > -- > > 1.7.2.2 > > > > -- > > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html