rtlwifi: rtl8192se: Synchronize IRQ after disabling it
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 24 May 2011 01:38:52 +0000 (20:38 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 1 Jun 2011 19:19:02 +0000 (15:19 -0400)
As suggested by Mike McCormack <mikem@ring3k.org> for rtl8192ce, make sure any IRQ
handlers running on other CPUs complete.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192se/hw.c

index 6ff0cac..35dd12d 100644 (file)
@@ -1226,6 +1226,7 @@ void rtl92se_disable_interrupt(struct ieee80211_hw *hw)
        rtl_write_dword(rtlpriv, INTA_MASK + 4, 0);
 
        rtlpci->irq_enabled = false;
+       synchronize_irq(rtlpci->pdev->irq);
 }