mirror of https://gitee.com/openkylin/linux.git
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
|
@ -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 New Issue