Message ID | 20161111220530.GA142669@google.com (mailing list archive) |
---|---|
State | Not Applicable |
Delegated to: | Kalle Valo |
Headers | show |
diff --git a/drivers/net/wireless/marvell/mwifiex/util.c b/drivers/net/wireless/marvell/mwifiex/util.c index 4063086ab5b8..e9446eeafb9d 100644 --- a/drivers/net/wireless/marvell/mwifiex/util.c +++ b/drivers/net/wireless/marvell/mwifiex/util.c @@ -841,6 +841,11 @@ void mwifiex_disable_wake(struct mwifiex_plt_wake_cfg *wake_cfg) { if (wake_cfg && wake_cfg->irq_wifi >= 0) { disable_irq_wake(wake_cfg->irq_wifi); + /* + * Disable the wake IRQ only if it didn't already fire (and + * disable itself). + */ + synchronize_irq(wake_cfg->irq_wifi); if (!wake_cfg->wake_by_wifi) disable_irq(wake_cfg->irq_wifi); }