Re: [PATCH] wifi: brcmfmac: keep power during suspend if board requires it
Arend van Spriel <[email protected]>
| Newsgroups | dev.linux.lists.brcm80211,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
On 2/12/2025 7:59 PM, Matthias Proske wrote:
> 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.
Thanks! Looks good to me.
Acked-by: Arend van Spriel <[email protected]>
> Signed-off-by: Matthias Proske <[email protected]>
> ---
> .../broadcom/brcm80211/brcmfmac/bcmsdh.c | 20 ++++++++++++-------
> 1 file changed, 13 insertions(+), 7 deletions(-)