Skip to content

Commit 4f66667

Browse files
zonquestorulf
authored andcommitted
libertas: call into generic suspend code before turning off power
When powering down a SDIO connected card during suspend, make sure to call into the generic lbs_suspend() function before pulling the plug. This will make sure the card is successfully deregistered from the system to avoid communication to the card starving out. Fixes: 7444a80 ("libertas: fix suspend and resume for SDIO connected cards") Signed-off-by: Daniel Mack <daniel@zonque.org> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org> Acked-by: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 41591b3 commit 4f66667

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/wireless/marvell/libertas

1 file changed

+4
-0
lines changed

drivers/net/wireless/marvell/libertas/if_sdio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,6 +1317,10 @@ static int if_sdio_suspend(struct device *dev)
13171317
if (priv->wol_criteria == EHS_REMOVE_WAKEUP) {
13181318
dev_info(dev, "Suspend without wake params -- powering down card\n");
13191319
if (priv->fw_ready) {
1320+
ret = lbs_suspend(priv);
1321+
if (ret)
1322+
return ret;
1323+
13201324
priv->power_up_on_resume = true;
13211325
if_sdio_power_off(card);
13221326
}

0 commit comments

Comments
 (0)