diff options
author | Rahul Bansal <rbansal@nvidia.com> | 2011-06-15 20:03:44 +0530 |
---|---|---|
committer | Yuhao Ding <yding@nvidia.com> | 2011-06-16 18:24:51 -0700 |
commit | 113676ec197fc62b7dce23dad4e081c940319846 (patch) | |
tree | cbf0136e3c8f9c68daf30ec59df757986df4019b /drivers/net/wireless | |
parent | a19f85a8a7af722bcfd729297e682574dc22de7b (diff) |
drivers: net: wireless :bcm4329: disable sdio interrupts before wifi reset
during system suspend if wifi is on but not connected, android
sets RTC alarm to wake up system after 2 mins of system suspend
to turn off wifi. during turning off wifi it was observed that
BCM4329 MAC is giving spurious sdio interrupts which was causing
lockup issue (mmc_lock) between sdio interrupt handling process
and wifi stop process, to fix this issue sdio interrupts are
disabled before giving MAC reset from host.
Bug 834444
Bug 798783
Bug 796147
Bug 797230
Bug 780047
Bug 818687
Change-Id: I98ac26ca8951bb9f32dcff06e096d1ac9c9e3788
Reviewed-on: http://git-master/r/36755
Reviewed-by: Rahul Bansal <rbansal@nvidia.com>
Tested-by: Rahul Bansal <rbansal@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/bcm4329/dhd_sdio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcm4329/dhd_sdio.c b/drivers/net/wireless/bcm4329/dhd_sdio.c index da5189bbc1cf..21bc808b31a1 100644 --- a/drivers/net/wireless/bcm4329/dhd_sdio.c +++ b/drivers/net/wireless/bcm4329/dhd_sdio.c @@ -5758,6 +5758,12 @@ dhd_bus_devreset(dhd_pub_t *dhdp, uint8 flag) /* Force flow control as protection when stop come before ifconfig_down */ dhd_txflowcontrol(bus->dhd, 0, ON); #endif /* !defined(IGNORE_ETH0_DOWN) */ + +#if !defined(OOB_INTR_ONLY) + /* to avoid supurious client interrupt during stop process */ + bcmsdh_stop(bus->sdh); +#endif /* !defined(OOB_INTR_ONLY) */ + /* Expect app to have torn down any connection before calling */ /* Stop the bus, disable F2 */ dhd_bus_stop(bus, FALSE); |