Commit d96e3927 authored by Brian Norris's avatar Brian Norris Committed by Kalle Valo

mwifiex: cleanup wake-IRQ handling if suspend fails

We don't want to leave the wake IRQ enabled.
Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 61d10842
......@@ -135,6 +135,7 @@ static int mwifiex_pcie_suspend(struct device *dev)
mwifiex_dbg(adapter, ERROR,
"cmd: failed to suspend\n");
adapter->hs_enabling = false;
mwifiex_disable_wake(adapter);
return -EFAULT;
}
......
......@@ -298,6 +298,7 @@ static int mwifiex_sdio_suspend(struct device *dev)
mwifiex_dbg(adapter, ERROR,
"cmd: failed to suspend\n");
adapter->hs_enabling = false;
mwifiex_disable_wake(adapter);
return -EFAULT;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment