Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}

+1 −0
Original line number Diff line number Diff line
@@ -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;
	}