OSDN Git Service

mwifiex: reset interrupt status across device reset
authorBrian Norris <briannorris@chromium.org>
Tue, 25 Jul 2017 01:13:18 +0000 (18:13 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jul 2017 14:47:45 +0000 (17:47 +0300)
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>
drivers/net/wireless/marvell/mwifiex/main.c

index 8615099..275cf8d 100644 (file)
@@ -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++) {