mwifiex: avoid double-disable_irq() race
authorBrian Norris <briannorris@chromium.org>
Fri, 18 Nov 2016 17:13:25 +0000 (22:43 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 25 Nov 2016 09:49:56 +0000 (11:49 +0200)
commitb9da4d223bdade1f6f3401387761f61b0da1224e
treed1272d0c6644565d336a03896df14235deb432de
parentd96e39270ba5b81dee63f7a1bdaad01484c94e08
mwifiex: avoid double-disable_irq() race

We have a race where the wakeup IRQ might be in flight while we're
calling mwifiex_disable_wake() from resume(). This can leave us
disabling the IRQ twice.

Let's disable the IRQ and enable it in case if we have double-disabled
it.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.h