libertas: call into generic suspend code before turning off power
authorDaniel Mack <daniel@zonque.org>
Mon, 8 Oct 2018 20:03:57 +0000 (22:03 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 10 Oct 2018 12:01:50 +0000 (14:01 +0200)
commit4f666675cdff0b986195413215eb062b7da6586f
tree098c48aa15d8994a40411d4b24a3a9a3f8941952
parent41591b38f5f8f78344954b68582b5f00e56ffe61
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: 7444a8092906 ("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>
drivers/net/wireless/marvell/libertas/if_sdio.c