brcmfmac: Avoid keeping power to SDIO card unless WOWL is used
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 23 Mar 2022 08:39:50 +0000 (09:39 +0100)
committerKalle Valo <kvalo@kernel.org>
Wed, 6 Apr 2022 12:11:01 +0000 (15:11 +0300)
commit92cadedd9d5f4355d8ca2765f2259708f0e5592c
tree5740d210c11fafcb8c6e484701d2a3d4c8b347c3
parent3e12968f6d12a34b540c39cbd696a760cc4616f0
brcmfmac: Avoid keeping power to SDIO card unless WOWL is used

Keeping the power to the SDIO card during system wide suspend, consumes
energy. Especially on battery driven embedded systems, this can be a
problem. Therefore, let's change the behaviour into allowing the SDIO card
to be powered off, unless WOWL is supported and enabled.

Note that, the downside from this change, is that during system resume the
SDIO card needs to be re-initialized and the FW must be re-programmed. Even
if this may take some time to complete, it should we worth it, rather than
draining the battery.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Christophe Roullier <christophe.roullier@foss.st.com>
Reviewed-by: Yann Gautier <yann.gautier@foss.st.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220323083950.414783-1-ulf.hansson@linaro.org
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c