arm64: dts: hikey: Give wifi some time after power-on
Subsystems (2)
PATCH 1/1 arm64: dts: hikey: Give wifi some time after power-on
From: Jan Kiszka <[email protected]>
Somewhere along recent changes to power control of the wl1835, power-on became very unreliable on the hikey, failing like this:
wl1271_sdio: probe of mmc2:0001:1 failed with error -16wl1271_sdio: probe of mmc2:0001:2 failed with error -16
After playing with some dt parameters and comparing to other users of this chip, it turned out we need some power-on delay to make things stable again. In contrast to those other users which define 200 ms, the hikey is already very happy with 1 ms.
---
Tested with 4.19 and linus/master.
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + 1 file changed, 1 insertion(+)
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +1 -0
@@ -118,6 +118,7 @@ reset-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; clocks = <&pmic>; clock-names = "ext_clock"; + post-power-on-delay-ms = <1>; power-off-delay-us = <10>; };
Signature · 1 line
2.16.4
Adding a few folks to cc from the thread here:
https://patchwork.kernel.org/patch/10734021/
As this sounds like a very similar issue.
thanks
-john
Quoted 37 lines · Jan Kiszka
From: Jan Kiszka <[email protected]>
Somewhere along recent changes to power control of the wl1835, power-on became very unreliable on the hikey, failing like this:
wl1271_sdio: probe of mmc2:0001:1 failed with error -16wl1271_sdio: probe of mmc2:0001:2 failed with error -16After playing with some dt parameters and comparing to other users of this chip, it turned out we need some power-on delay to make things stable again. In contrast to those other users which define 200 ms, the hikey is already very happy with 1 ms.
Signed-off-by Jan Kiszka <[email protected]>---
Tested with 4.19 and linus/master.
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +1
-1@@ -118,6 +118,7 @@ reset-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; clocks = <&pmic>; clock-names = "ext_clock"; + post-power-on-delay-ms = <1>; power-off-delay-us = <10>; }; --2.16.4
Quoted 7 lines · John Stultz
Adding a few folks to cc from the thread here:
https://patchwork.kernel.org/patch/10734021/As this sounds like a very similar issue.
thanks
-john
John, thanks for looping me in.
Quoted 8 lines · Jan Kiszka
Quoted 6 lines
From: Jan Kiszka <[email protected]>
Somewhere along recent changes to power control of the wl1835, power-on became very unreliable on the hikey, failing like this:
Quoted 7 lines
Quoted 7 lines
wl1271_sdio: probe of mmc2:0001:1 failed with error -16wl1271_sdio: probe of mmc2:0001:2 failed with error -16After playing with some dt parameters and comparing to other users of this chip, it turned out we need some power-on delay to make things stable again. In contrast to those other users which define 200 ms, the hikey is already very happy with 1 ms.
According to the discussions we had so far, this doesn't sound like the correct solution.
I am intending to post patch soon, however, I am not sure exactly what solution to pick yet. I will keep you on cc - and of course I appreciate if you could help to test.
Kind regards
Uffe
Quoted 24 lines
Quoted 24 lines
Signed-off-by Jan Kiszka <[email protected]>---
Tested with 4.19 and linus/master.
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +1
-1@@ -118,6 +118,7 @@ reset-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; clocks = <&pmic>; clock-names = "ext_clock"; + post-power-on-delay-ms = <1>; power-off-delay-us = <10>; }; --2.16.4
Quoted 27 lines · Ulf Hansson
Quoted 7 lines · John Stultz
Adding a few folks to cc from the thread here:
https://patchwork.kernel.org/patch/10734021/As this sounds like a very similar issue.
thanks
-johnJohn, thanks for looping me in.
Quoted 8 lines · Jan Kiszka
Quoted 6 lines
From: Jan Kiszka <[email protected]>
Somewhere along recent changes to power control of the wl1835, power-on became very unreliable on the hikey, failing like this:
Quoted 7 lines
Quoted 7 lines
wl1271_sdio: probe of mmc2:0001:1 failed with error -16wl1271_sdio: probe of mmc2:0001:2 failed with error -16After playing with some dt parameters and comparing to other users of this chip, it turned out we need some power-on delay to make things stable again. In contrast to those other users which define 200 ms, the hikey is already very happy with 1 ms.
Quoted 7 lines
According to the discussions we had so far, this doesn't sound like the correct solution.
I am intending to post patch soon, however, I am not sure exactly what solution to pick yet. I will keep you on cc - and of course I appreciate if you could help to test.
FWIW, the Ultra96 is also affected. Here I worked around it by using a 10 ms power-on delay. The original workaround from the other thread did not help. Looking forward to the proper fix now!
Jan
Quoted 25 lines
Kind regards
UffeQuoted 22 lines
Quoted 22 lines
Signed-off-by Jan Kiszka <[email protected]>---
Tested with 4.19 and linus/master.
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 1 + 1 file changed, 1 insertion(+)arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts +1
-0@@ -118,6 +118,7 @@ reset-gpios = <&gpio0 5 GPIO_ACTIVE_LOW>; clocks = <&pmic>; clock-names = "ext_clock"; + post-power-on-delay-ms = <1>; power-off-delay-us = <10>; };
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
--
2.16.4
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 31 lines · Jan Kiszka
Quoted 30 lines · Ulf Hansson
Quoted 7 lines · John Stultz
Adding a few folks to cc from the thread here:
https://patchwork.kernel.org/patch/10734021/As this sounds like a very similar issue.
thanks
-johnJohn, thanks for looping me in.
Quoted 8 lines · Jan Kiszka
Quoted 6 lines
From: Jan Kiszka <[email protected]>
Somewhere along recent changes to power control of the wl1835, power-on became very unreliable on the hikey, failing like this:
Quoted 7 lines
Quoted 7 lines
wl1271_sdio: probe of mmc2:0001:1 failed with error -16wl1271_sdio: probe of mmc2:0001:2 failed with error -16After playing with some dt parameters and comparing to other users of this chip, it turned out we need some power-on delay to make things stable again. In contrast to those other users which define 200 ms, the hikey is already very happy with 1 ms.
According to the discussions we had so far, this doesn't sound like the correct solution.
Quoted 7 lines
Quoted 4 lines
I am intending to post patch soon, however, I am not sure exactly what solution to pick yet. I will keep you on cc - and of course I appreciate if you could help to test.
FWIW, the Ultra96 is also affected. Here I worked around it by using a 10 ms power-on delay. The original workaround from the other thread did not help. Looking forward to the proper fix now!
Any news on this regression?
Jan
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 38 lines · Jan Kiszka
Quoted 36 lines · Jan Kiszka
Quoted 34 lines · Ulf Hansson
Quoted 7 lines · John Stultz
Adding a few folks to cc from the thread here:
https://patchwork.kernel.org/patch/10734021/As this sounds like a very similar issue.
thanks
-johnJohn, thanks for looping me in.
Quoted 8 lines · Jan Kiszka
Quoted 6 lines
From: Jan Kiszka <[email protected]>
Somewhere along recent changes to power control of the wl1835, power-on became very unreliable on the hikey, failing like this:
Quoted 7 lines
Quoted 7 lines
wl1271_sdio: probe of mmc2:0001:1 failed with error -16wl1271_sdio: probe of mmc2:0001:2 failed with error -16After playing with some dt parameters and comparing to other users of this chip, it turned out we need some power-on delay to make things stable again. In contrast to those other users which define 200 ms, the hikey is already very happy with 1 ms.
According to the discussions we had so far, this doesn't sound like the correct solution.
I am intending to post patch soon, however, I am not sure exactly what solution to pick yet. I will keep you on cc - and of course I appreciate if you could help to test.
Quoted 6 lines
Quoted 4 lines
FWIW, the Ultra96 is also affected. Here I worked around it by using a 10 ms power-on delay. The original workaround from the other thread did not help. Looking forward to the proper fix now!
Any news on this regression?
I will post a (or two) patch during the day.
Kind regards
Uffe