linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/5] iwlwifi: iwl3945 synchronize interrupt and tasklet for down iwlwifi
@ 2008-01-09 11:02 Joonwoo Park
  2008-01-10 19:10 ` [ipw3945-devel] [PATCH 2/5] iwlwifi: iwl3945 synchronize interruptand " Chatre, Reinette
  0 siblings, 1 reply; 10+ messages in thread
From: Joonwoo Park @ 2008-01-09 11:02 UTC (permalink / raw)
  To: Zhu Yi, netdev; +Cc: lkml, ipw3945-devel, linux-wireless, Joonwoo Park

After disabling interrupts, it's possible irq & tasklet is pending or running
This patch eleminates races for down iwlwifi

Signed-off-by: Joonwoo Park <joonwpark81@gmail.com>
---
 drivers/net/wireless/iwlwifi/iwl3945-base.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index c97448d..3986aaf 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -6262,6 +6262,10 @@ static void __iwl_down(struct iwl_priv *priv)
 	/* tell the device to stop sending interrupts */
 	iwl_disable_interrupts(priv);
 
+	/* synchronize irq and tasklet */
+	synchronize_irq(priv->pci_dev->irq);
+	tasklet_kill(&priv->irq_tasklet);
+
 	if (priv->mac80211_registered)
 		ieee80211_stop_queues(priv->hw);
 
-- 
1.5.3.rc5


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-01-16 16:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-09 11:02 [PATCH 2/5] iwlwifi: iwl3945 synchronize interrupt and tasklet for down iwlwifi Joonwoo Park
2008-01-10 19:10 ` [ipw3945-devel] [PATCH 2/5] iwlwifi: iwl3945 synchronize interruptand " Chatre, Reinette
2008-01-11  1:24   ` Joonwoo Park
2008-01-11  1:42     ` Chatre, Reinette
2008-01-11  2:38       ` Joonwoo Park
2008-01-14  8:35         ` Joonwoo Park
2008-01-14  9:42           ` Joonwoo Park
2008-01-15 19:21             ` Chatre, Reinette
2008-01-16  4:15               ` Joonwoo Park
2008-01-16 16:37                 ` Chatre, Reinette

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).