LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] arm64: dts: hikey: Define wl1835 power capabilities
@ 2018-06-13 15:13 Ryan Grachek
2018-06-13 17:34 ` Valentin Schneider
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Ryan Grachek @ 2018-06-13 15:13 UTC (permalink / raw)
Cc: Ryan Grachek, Wei Xu, Rob Herring, Mark Rutland, Catalin Marinas,
Will Deacon, linux-arm-kernel, devicetree, linux-kernel
These properties are required for compatibility with runtime PM.
Without these properties, MMC host controller will not be aware
of power capabilities. When the wlcore driver attempts to power
on the device, it will erroneously fail with -EACCES.
Signed-off-by: Ryan Grachek <ryan@edited.us>
---
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
index 38f881955217..c5feca8cd10b 100644
--- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
@@ -323,6 +323,8 @@
bus-width = <0x4>;
cap-sd-highspeed;
non-removable;
+ cap-power-off-card;
+ keep-power-in-suspend;
vmmc-supply = <®_vdd_3v3>;
mmc-pwrseq = <&wl1835_pwrseq>;
--
2.11.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: dts: hikey: Define wl1835 power capabilities
2018-06-13 15:13 [PATCH] arm64: dts: hikey: Define wl1835 power capabilities Ryan Grachek
@ 2018-06-13 17:34 ` Valentin Schneider
2018-06-13 18:19 ` Ryan Grachek
2018-06-13 18:30 ` John Stultz
2018-06-28 20:25 ` Wei Xu
2 siblings, 1 reply; 9+ messages in thread
From: Valentin Schneider @ 2018-06-13 17:34 UTC (permalink / raw)
To: Ryan Grachek
Cc: Wei Xu, Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
linux-arm-kernel, devicetree, linux-kernel, John Stultz
Hi,
On 13/06/18 16:13, Ryan Grachek wrote:
> These properties are required for compatibility with runtime PM.
> Without these properties, MMC host controller will not be aware
> of power capabilities. When the wlcore driver attempts to power
> on the device, it will erroneously fail with -EACCES.
>
I don't have a hikey620 to test this, but the hikey960 is suffering from the
same issue (see [1]). I added these properties to the dwmmc2 node of the
hikey960 (see snippet) and wlan0 does show up. Would you mind sending a
similar patch for that board ?
Thanks !
Valentin
[1]: https://lkml.org/lkml/2018/6/12/930
--->8
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
index 85aadf1b..c706f70 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
@@ -613,6 +613,8 @@
vmmc-supply = <&wlan_en>;
ti,non-removable;
non-removable;
+ cap-power-off-card;
+ keep-power-in-suspend;
#address-cells = <0x1>;
#size-cells = <0x0>;
status = "ok";
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: dts: hikey: Define wl1835 power capabilities
2018-06-13 17:34 ` Valentin Schneider
@ 2018-06-13 18:19 ` Ryan Grachek
0 siblings, 0 replies; 9+ messages in thread
From: Ryan Grachek @ 2018-06-13 18:19 UTC (permalink / raw)
To: Valentin Schneider
Cc: Wei Xu, Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
linux-arm-kernel, devicetree, linux-kernel, John Stultz
Hi Valentin,
On Wed, Jun 13, 2018 at 12:34 PM, Valentin Schneider
<valentin.schneider@arm.com> wrote:
> Hi,
>
> On 13/06/18 16:13, Ryan Grachek wrote:
>> These properties are required for compatibility with runtime PM.
>> Without these properties, MMC host controller will not be aware
>> of power capabilities. When the wlcore driver attempts to power
>> on the device, it will erroneously fail with -EACCES.
>>
>
> I don't have a hikey620 to test this, but the hikey960 is suffering from the
> same issue (see [1]). I added these properties to the dwmmc2 node of the
> hikey960 (see snippet) and wlan0 does show up. Would you mind sending a
> similar patch for that board ?
>
> Thanks !
>
> Valentin
>
> [1]: https://lkml.org/lkml/2018/6/12/930
>
> --->8
>
> diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
> index 85aadf1b..c706f70 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
> +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
> @@ -613,6 +613,8 @@
> vmmc-supply = <&wlan_en>;
> ti,non-removable;
> non-removable;
> + cap-power-off-card;
> + keep-power-in-suspend;
> #address-cells = <0x1>;
> #size-cells = <0x0>;
> status = "ok";
Not a problem. The patch can be found here:
https://patchwork.kernel.org/patch/10462767/
Ryan
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: dts: hikey: Define wl1835 power capabilities
2018-06-13 15:13 [PATCH] arm64: dts: hikey: Define wl1835 power capabilities Ryan Grachek
2018-06-13 17:34 ` Valentin Schneider
@ 2018-06-13 18:30 ` John Stultz
2018-06-13 18:53 ` Kalle Valo
2018-06-25 21:56 ` John Stultz
2018-06-28 20:25 ` Wei Xu
2 siblings, 2 replies; 9+ messages in thread
From: John Stultz @ 2018-06-13 18:30 UTC (permalink / raw)
To: Ryan Grachek
Cc: Wei Xu, Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
linux-arm-kernel, devicetree, Linux Kernel Mailing List,
Kalle Valo, Eyal Reizer, Tony Lindgren, Valentin Schneider
On Wed, Jun 13, 2018 at 8:13 AM, Ryan Grachek <ryan@edited.us> wrote:
> These properties are required for compatibility with runtime PM.
> Without these properties, MMC host controller will not be aware
> of power capabilities. When the wlcore driver attempts to power
> on the device, it will erroneously fail with -EACCES.
>
> Signed-off-by: Ryan Grachek <ryan@edited.us>
Fixes: 60f36637bbbd ("wlcore: sdio: allow pm to handle sdio power")
Tested-by: John Stultz <john.stultz@linaro.org>
Acked-by: John Stultz <john.stultz@linaro.org>
Wei Xu: This fixes a functional regression with wifi on the HiKey
board that was introduced in 4.18-rc with commit 60f36637bbbd
("wlcore: sdio: allow pm to handle sdio power").
Could you please be sure to queue this for the 4.18-rc ?
thanks
-john
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: dts: hikey: Define wl1835 power capabilities
2018-06-13 18:30 ` John Stultz
@ 2018-06-13 18:53 ` Kalle Valo
2018-06-14 6:40 ` [EXTERNAL] " Reizer, Eyal
2018-06-25 21:56 ` John Stultz
1 sibling, 1 reply; 9+ messages in thread
From: Kalle Valo @ 2018-06-13 18:53 UTC (permalink / raw)
To: John Stultz
Cc: Ryan Grachek, Wei Xu, Rob Herring, Mark Rutland, Catalin Marinas,
Will Deacon, linux-arm-kernel, devicetree,
Linux Kernel Mailing List, Eyal Reizer, Tony Lindgren,
Valentin Schneider, linux-wireless
John Stultz <john.stultz@linaro.org> writes:
> On Wed, Jun 13, 2018 at 8:13 AM, Ryan Grachek <ryan@edited.us> wrote:
>> These properties are required for compatibility with runtime PM.
>> Without these properties, MMC host controller will not be aware
>> of power capabilities. When the wlcore driver attempts to power
>> on the device, it will erroneously fail with -EACCES.
>>
>> Signed-off-by: Ryan Grachek <ryan@edited.us>
>
> Fixes: 60f36637bbbd ("wlcore: sdio: allow pm to handle sdio power")
> Tested-by: John Stultz <john.stultz@linaro.org>
> Acked-by: John Stultz <john.stultz@linaro.org>
>
> Wei Xu: This fixes a functional regression with wifi on the HiKey
> board that was introduced in 4.18-rc with commit 60f36637bbbd
> ("wlcore: sdio: allow pm to handle sdio power").
>
> Could you please be sure to queue this for the 4.18-rc ?
Adding linux-wireless so that wireless folks are aware of this wlcore
regression fix as well.
--
Kalle Valo
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: [EXTERNAL] Re: [PATCH] arm64: dts: hikey: Define wl1835 power capabilities
2018-06-13 18:53 ` Kalle Valo
@ 2018-06-14 6:40 ` Reizer, Eyal
0 siblings, 0 replies; 9+ messages in thread
From: Reizer, Eyal @ 2018-06-14 6:40 UTC (permalink / raw)
To: Kalle Valo, John Stultz
Cc: Ryan Grachek, Wei Xu, Rob Herring, Mark Rutland, Catalin Marinas,
Will Deacon, linux-arm-kernel, devicetree,
Linux Kernel Mailing List, Tony Lindgren, Valentin Schneider,
linux-wireless
> >> These properties are required for compatibility with runtime PM.
> >> Without these properties, MMC host controller will not be aware
> >> of power capabilities. When the wlcore driver attempts to power
> >> on the device, it will erroneously fail with -EACCES.
> >>
> >> Signed-off-by: Ryan Grachek <ryan@edited.us>
> >
> > Fixes: 60f36637bbbd ("wlcore: sdio: allow pm to handle sdio power")
> > Tested-by: John Stultz <john.stultz@linaro.org>
> > Acked-by: John Stultz <john.stultz@linaro.org>
> >
> > Wei Xu: This fixes a functional regression with wifi on the HiKey
> > board that was introduced in 4.18-rc with commit 60f36637bbbd
> > ("wlcore: sdio: allow pm to handle sdio power").
> >
> > Could you please be sure to queue this for the 4.18-rc ?
>
> Adding linux-wireless so that wireless folks are aware of this wlcore
> regression fix as well.
>
Actually "cap-power-off-card" is normally included with all .dts files supporting wilink
So it should have been there from the start for this board as well.
It probably worked without it due to the explicit call to mmc_power_restore_host()
that was there as an old workaround for trying to control the power explicitly from the
driver which was actually causing other failures on suspend/resume as the mmc layer
already power the module on resume.
"keep-power-in-suspend" is needed in case of planning to use "WoWLAN":
Iw phy0 wowlan enable....
Best Regards,
Eyal
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: dts: hikey: Define wl1835 power capabilities
2018-06-13 18:30 ` John Stultz
2018-06-13 18:53 ` Kalle Valo
@ 2018-06-25 21:56 ` John Stultz
2018-06-26 8:25 ` Wei Xu
1 sibling, 1 reply; 9+ messages in thread
From: John Stultz @ 2018-06-25 21:56 UTC (permalink / raw)
To: Ryan Grachek
Cc: Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Tony Lindgren, Catalin Marinas, Will Deacon,
Linux Kernel Mailing List, Wei Xu, Eyal Reizer, Rob Herring,
Kalle Valo, Valentin Schneider, linux-arm-kernel, linux-wireless
On Wed, Jun 13, 2018 at 11:30 AM, John Stultz <john.stultz@linaro.org> wrote:
> On Wed, Jun 13, 2018 at 8:13 AM, Ryan Grachek <ryan@edited.us> wrote:
>> These properties are required for compatibility with runtime PM.
>> Without these properties, MMC host controller will not be aware
>> of power capabilities. When the wlcore driver attempts to power
>> on the device, it will erroneously fail with -EACCES.
>>
>> Signed-off-by: Ryan Grachek <ryan@edited.us>
>
> Fixes: 60f36637bbbd ("wlcore: sdio: allow pm to handle sdio power")
> Tested-by: John Stultz <john.stultz@linaro.org>
> Acked-by: John Stultz <john.stultz@linaro.org>
>
> Wei Xu: This fixes a functional regression with wifi on the HiKey
> board that was introduced in 4.18-rc with commit 60f36637bbbd
> ("wlcore: sdio: allow pm to handle sdio power").
Wei Xu: Just wanted to follow up to make sure this wasn't missed for
4.18-rc, as I haven't seen it upstream or in -next, and it fixes a
recently introduced regression.
thanks
-john
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: dts: hikey: Define wl1835 power capabilities
2018-06-25 21:56 ` John Stultz
@ 2018-06-26 8:25 ` Wei Xu
0 siblings, 0 replies; 9+ messages in thread
From: Wei Xu @ 2018-06-26 8:25 UTC (permalink / raw)
To: John Stultz, Ryan Grachek
Cc: Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Tony Lindgren, Catalin Marinas, Will Deacon,
Linux Kernel Mailing List, Eyal Reizer, Rob Herring, Kalle Valo,
Valentin Schneider, linux-arm-kernel, linux-wireless
Hi John,
On 2018/6/25 22:56, John Stultz wrote:
> On Wed, Jun 13, 2018 at 11:30 AM, John Stultz <john.stultz@linaro.org> wrote:
>> On Wed, Jun 13, 2018 at 8:13 AM, Ryan Grachek <ryan@edited.us> wrote:
>>> These properties are required for compatibility with runtime PM.
>>> Without these properties, MMC host controller will not be aware
>>> of power capabilities. When the wlcore driver attempts to power
>>> on the device, it will erroneously fail with -EACCES.
>>>
>>> Signed-off-by: Ryan Grachek <ryan@edited.us>
>>
>> Fixes: 60f36637bbbd ("wlcore: sdio: allow pm to handle sdio power")
>> Tested-by: John Stultz <john.stultz@linaro.org>
>> Acked-by: John Stultz <john.stultz@linaro.org>
>>
>> Wei Xu: This fixes a functional regression with wifi on the HiKey
>> board that was introduced in 4.18-rc with commit 60f36637bbbd
>> ("wlcore: sdio: allow pm to handle sdio power").
>
> Wei Xu: Just wanted to follow up to make sure this wasn't missed for
> 4.18-rc, as I haven't seen it upstream or in -next, and it fixes a
> recently introduced regression.
Thanks!
I will send out the fix pull request in these two days if no problem.
Best Regards,
Wei
>
> thanks
> -john
>
> .
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] arm64: dts: hikey: Define wl1835 power capabilities
2018-06-13 15:13 [PATCH] arm64: dts: hikey: Define wl1835 power capabilities Ryan Grachek
2018-06-13 17:34 ` Valentin Schneider
2018-06-13 18:30 ` John Stultz
@ 2018-06-28 20:25 ` Wei Xu
2 siblings, 0 replies; 9+ messages in thread
From: Wei Xu @ 2018-06-28 20:25 UTC (permalink / raw)
To: Ryan Grachek
Cc: Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
linux-arm-kernel, devicetree, linux-kernel
Hi Ryan,
On 2018/6/13 16:13, Ryan Grachek wrote:
> These properties are required for compatibility with runtime PM.
> Without these properties, MMC host controller will not be aware
> of power capabilities. When the wlcore driver attempts to power
> on the device, it will erroneously fail with -EACCES.
>
> Signed-off-by: Ryan Grachek <ryan@edited.us>
> ---
Applied to hisilicon fix tree.
Thanks!
Best Regards,
Wei
> arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
> index 38f881955217..c5feca8cd10b 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
> +++ b/arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts
> @@ -323,6 +323,8 @@
> bus-width = <0x4>;
> cap-sd-highspeed;
> non-removable;
> + cap-power-off-card;
> + keep-power-in-suspend;
> vmmc-supply = <®_vdd_3v3>;
> mmc-pwrseq = <&wl1835_pwrseq>;
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2018-06-28 20:25 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-13 15:13 [PATCH] arm64: dts: hikey: Define wl1835 power capabilities Ryan Grachek
2018-06-13 17:34 ` Valentin Schneider
2018-06-13 18:19 ` Ryan Grachek
2018-06-13 18:30 ` John Stultz
2018-06-13 18:53 ` Kalle Valo
2018-06-14 6:40 ` [EXTERNAL] " Reizer, Eyal
2018-06-25 21:56 ` John Stultz
2018-06-26 8:25 ` Wei Xu
2018-06-28 20:25 ` Wei Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).