summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/marvell/mwifiex
diff options
context:
space:
mode:
authorBrian Norris <briannorris@chromium.org>2017-07-24 18:13:18 -0700
committerKalle Valo <kvalo@codeaurora.org>2017-07-28 17:47:45 +0300
commit4b1f5a0d2eeb988d3e77dce7210e3ad3136b0912 (patch)
tree5fc61f702a09adef3c281f3df490e59598476875 /drivers/net/wireless/marvell/mwifiex
parentb6658b66d8a6eaaf216382c19d016116931a0f63 (diff)
downloadop-kernel-dev-4b1f5a0d2eeb988d3e77dce7210e3ad3136b0912.zip
op-kernel-dev-4b1f5a0d2eeb988d3e77dce7210e3ad3136b0912.tar.gz
mwifiex: reset interrupt status across device reset
When resetting the device, we might have queued up interrupts that didn't get a chance to finish processing. We really don't need to handle them at this point; we just want to make sure they don't cause us to try to process old commands from before the device was reset. Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/marvell/mwifiex')
-rw-r--r--drivers/net/wireless/marvell/mwifiex/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c
index 8615099..275cf8d 100644
--- a/drivers/net/wireless/marvell/mwifiex/main.c
+++ b/drivers/net/wireless/marvell/mwifiex/main.c
@@ -1366,6 +1366,7 @@ static void mwifiex_uninit_sw(struct mwifiex_adapter *adapter)
adapter->surprise_removed = true;
mwifiex_terminate_workqueue(adapter);
+ adapter->int_status = 0;
/* Stop data */
for (i = 0; i < adapter->priv_num; i++) {
OpenPOWER on IntegriCloud