]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: brcmfmac: keep power during suspend if board requires it
authorMatthias Proske <email@matthias-proske.de>
Wed, 12 Feb 2025 18:59:35 +0000 (19:59 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Feb 2025 14:11:50 +0000 (15:11 +0100)
commit8c3170628a9ce24a59647bd24f897e666af919b8
tree84436905c60e901e47c3e45b89c2c7c4b870909c
parent861d0445e72e9e33797f2ceef882c74decb16a87
wifi: brcmfmac: keep power during suspend if board requires it

After commit 92cadedd9d5f ("brcmfmac: Avoid keeping power to SDIO card
unless WOWL is used"), the wifi adapter by default is turned off on
suspend and then re-probed on resume.

This conflicts with some embedded boards that require to remain powered.
They will fail on resume with:

brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
ieee80211 phy1: brcmf_bus_started: failed: -110
ieee80211 phy1: brcmf_attach: dongle is not responding: err=-110
brcmfmac: brcmf_sdio_firmware_callback: brcmf_attach failed

This commit checks for the Device Tree property 'cap-power-off-cards'.
If this property is not set, it means that we do not have the capability
to power off and should therefore remain powered.

Signed-off-by: Matthias Proske <email@matthias-proske.de>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://patch.msgid.link/20250212185941.146958-2-email@matthias-proske.de
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c