Search Linux Wireless

Re: [PATCH 1/8] rtlwifi: Synchronize IRQ after disabling it

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/23/2011 08:53 AM, Mike McCormack wrote:
This make sure any IRQ handlers running on other CPUs complete.

Signed-off-by: Mike McCormack<mikem@xxxxxxxxxx>
---
  drivers/net/wireless/rtlwifi/rtl8192ce/hw.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c b/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c
index 4a56138..87b8a79 100644
--- a/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c
+++ b/drivers/net/wireless/rtlwifi/rtl8192ce/hw.c
@@ -1196,6 +1196,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)

Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>

There is a similar construct in rtl8192se, but I will submit that patch.

Larry
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux