ARM: dts: imx6qdl-sr-som-ti: indicate powering off wifi is safe
Subsystems (2)
PATCH 1/1 ARM: dts: imx6qdl-sr-som-ti: indicate powering off wifi is safe
We need to indicate that powering off the TI WiFi is safe, to avoid:
wl18xx_driver wl18xx.2.auto: Unbalanced pm_runtime_enable! wl1271_sdio mmc0:0001:2: wl12xx_sdio_power_on: failed to get_sync(-13)
which prevents the WiFi being functional.
--- arch/arm/boot/dts/imx6qdl-sr-som-ti.dtsi | 1 + 1 file changed, 1 insertion(+)
arch/arm/boot/dts/imx6qdl-sr-som-ti.dtsi +1 -0
@@ -153,6 +153,7 @@ bus-width = <4>; keep-power-in-suspend; mmc-pwrseq = <&pwrseq_ti_wifi>; + cap-power-off-card; non-removable; vmmc-supply = <&vcc_3v3>; /* vqmmc-supply = <&nvcc_sd1>; - MMC layer doesn't like it! */
Signature · 1 line
2.20.1
Fabio Estevam
reviewerHi Russell,
Quoted 9 lines · Russell King
We need to indicate that powering off the TI WiFi is safe, to avoid:
wl18xx_driverwl18xx.2.auto: Unbalancedpm_runtime_enable!wl1271_sdiommc0:0001:2:wl12xx_sdio_power_on: failed toget_sync(-13)which prevents the WiFi being functional.
Signed-off-by Russell King <[email protected]>
Shouldn't this have a Fixes tag so that it can be backported to stable kernels?
Quoted 6 lines · Fabio Estevam
Hi Russell,
Quoted 3 lines · Russell King
We need to indicate that powering off the TI WiFi is safe, to avoid:
Quoted 8 lines
Quoted 6 lines
wl18xx_driverwl18xx.2.auto: Unbalancedpm_runtime_enable!wl1271_sdiommc0:0001:2:wl12xx_sdio_power_on: failed toget_sync(-13)which prevents the WiFi being functional.
Signed-off-by Russell King <[email protected]>Shouldn't this have a Fixes tag so that it can be backported to stable kernels?
If I knew where the breakage happened and what commit was responsible for it, then yes - but it used to work with earlier kernels (I don't know which) and at some point it broke.
The suggestion for how to fix it came from Jon Nettleton.
Signature · 3 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up
Quoted 14 lines · Russell King - ARM Linux admin
Quoted 13 lines · Fabio Estevam
Hi Russell,
Quoted 9 lines · Russell King
We need to indicate that powering off the TI WiFi is safe, to avoid:
wl18xx_driverwl18xx.2.auto: Unbalancedpm_runtime_enable!wl1271_sdiommc0:0001:2:wl12xx_sdio_power_on: failed toget_sync(-13)which prevents the WiFi being functional.
Signed-off-by Russell King <[email protected]>
Quoted 7 lines
Quoted 1 line
Shouldn't this have a Fixes tag so that it can be backported to stable kernels?
If I knew where the breakage happened and what commit was responsible for it, then yes - but it used to work with earlier kernels (I don't know which) and at some point it broke.
The suggestion for how to fix it came from Jon Nettleton.
Jon says:
"It was changes to the mmc power handling. Basically telling the controller that the card should be able to wake it up from a sleep state.
"I think it has to do with the runtime PM addition. This was added to the TI driver in commit, 9b71578de08748defb3bcae3ce8ed1a75cb6a8d7 I don't know if that is what broke it, but that was the initial integration.
"That was added after changes to the MMC layer were done I believe."
Jon thinks the idea for fixing it came from a post on one of the mailing lists, but is unable to find it now.
So, I think the cause is now lost in the mists of time.
Signature · 3 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up
Quoted 11 lines · Russell King - ARM Linux admin
Jon says:
"It was changes to the mmc power handling. Basically telling the controller that the card should be able to wake it up from a sleep state.
"I think it has to do with the runtime PM addition. This was added to the TI driver in commit,
9b71578de08748defb3bcae3ce8ed1a75cb6a8d7I don't know if that is what broke it, but that was the initial integration.
Quoted 6 lines
"That was added after changes to the MMC layer were done I believe."
Jon thinks the idea for fixing it came from a post on one of the mailing lists, but is unable to find it now.
So, I think the cause is now lost in the mists of time.
Ok, thanks for checking:
Shawn Guo
AppliedQuoted 8 lines · Russell King
We need to indicate that powering off the TI WiFi is safe, to avoid:
wl18xx_driverwl18xx.2.auto: Unbalancedpm_runtime_enable!wl1271_sdiommc0:0001:2:wl12xx_sdio_power_on: failed toget_sync(-13)which prevents the WiFi being functional.
Signed-off-by Russell King <[email protected]>
Applied, thanks.