mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
mwifiex: cleanup wake-IRQ handling if suspend fails
We don't want to leave the wake IRQ enabled. Signed-off-by: Brian Norris <briannorris@chromium.org> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
61d1084214
commit
d96e39270b
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue