From: Brian Norris Date: Fri, 18 Nov 2016 17:13:24 +0000 (+0530) Subject: mwifiex: cleanup wake-IRQ handling if suspend fails X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d96e39270ba5b81dee63f7a1bdaad01484c94e08;p=linux-beck.git mwifiex: cleanup wake-IRQ handling if suspend fails We don't want to leave the wake IRQ enabled. Signed-off-by: Brian Norris Signed-off-by: Amitkumar Karwar Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/marvell/mwifiex/pcie.c b/drivers/net/wireless/marvell/mwifiex/pcie.c index 4b89f557d0b6..e4f1f5575975 100644 --- a/drivers/net/wireless/marvell/mwifiex/pcie.c +++ b/drivers/net/wireless/marvell/mwifiex/pcie.c @@ -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; } diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c index 0d00db5142e6..1235f04c0dd4 100644 --- a/drivers/net/wireless/marvell/mwifiex/sdio.c +++ b/drivers/net/wireless/marvell/mwifiex/sdio.c @@ -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; }