rtlwifi: Synchronize IRQ after disabling it
authorMike McCormack <mikem@ring3k.org>
Mon, 30 May 2011 23:48:23 +0000 (08:48 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 3 Jun 2011 18:57:32 +0000 (14:57 -0400)
This make sure any IRQ handlers running on other CPUs complete.

Signed-off-by: Mike McCormack <mikem@ring3k.org>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192ce/hw.c

index d5d3c8a..944f55e 100644 (file)
@@ -1194,6 +1194,7 @@ void rtl92ce_disable_interrupt(struct ieee80211_hw *hw)
        rtl_write_dword(rtlpriv, REG_HIMR, IMR8190_DISABLED);
        rtl_write_dword(rtlpriv, REG_HIMRE, IMR8190_DISABLED);
        rtlpci->irq_enabled = false;
+       synchronize_irq(rtlpci->pdev->irq);
 }
 
 static void _rtl92ce_poweroff_adapter(struct ieee80211_hw *hw)