LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] arm64: dts: hikey960: Define wl1837 power capabilities
@ 2018-06-13 18:03 Ryan Grachek
2018-06-13 19:36 ` John Stultz
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Ryan Grachek @ 2018-06-13 18:03 UTC (permalink / raw)
Cc: valentin.schneider, 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. This fixes
a regression found here: https://lkml.org/lkml/2018/6/12/930
Signed-off-by: Ryan Grachek <ryan@edited.us>
---
arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
index c6999624ed8a..68c5a6c819ae 100644
--- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
+++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
@@ -585,6 +585,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";
--
2.11.0
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: hikey960: Define wl1837 power capabilities
2018-06-13 18:03 [PATCH] arm64: dts: hikey960: Define wl1837 power capabilities Ryan Grachek
@ 2018-06-13 19:36 ` John Stultz
2018-06-14 6:20 ` Kalle Valo
2018-06-13 21:47 ` Valentin Schneider
2018-06-28 20:26 ` Wei Xu
2 siblings, 1 reply; 5+ messages in thread
From: John Stultz @ 2018-06-13 19:36 UTC (permalink / raw)
To: Ryan Grachek, Wei Xu
Cc: Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Catalin Marinas, Will Deacon, lkml, Rob Herring,
Valentin Schneider, linux-arm-kernel, Eyal Reizer, Tony Lindgren,
linux-wireless, Kalle Valo
On Wed, Jun 13, 2018 at 11:03 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. This fixes
> a regression found here: https://lkml.org/lkml/2018/6/12/930
>
> 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 also fixes a functional regression with wifi on the
HiKey960 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 too?
thanks
-john
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: hikey960: Define wl1837 power capabilities
2018-06-13 18:03 [PATCH] arm64: dts: hikey960: Define wl1837 power capabilities Ryan Grachek
2018-06-13 19:36 ` John Stultz
@ 2018-06-13 21:47 ` Valentin Schneider
2018-06-28 20:26 ` Wei Xu
2 siblings, 0 replies; 5+ messages in thread
From: Valentin Schneider @ 2018-06-13 21:47 UTC (permalink / raw)
To: Ryan Grachek
Cc: Wei Xu, Rob Herring, Mark Rutland, Catalin Marinas, Will Deacon,
linux-arm-kernel, devicetree, linux-kernel
On 13/06/18 19:03, 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. This fixes
> a regression found here: https://lkml.org/lkml/2018/6/12/930
>
Thanks! As mentioned in the above thread, this lets wlan0 come up properly,
which otherwise doesn't come up and spits out:
[ 8.466097] wl1271_sdio mmc1:0001:2: wl12xx_sdio_power_on: failed to get_sync(-13)
Tested-by: Valentin Schneider <valentin.schneider@arm.com>
> Signed-off-by: Ryan Grachek <ryan@edited.us>
> ---
> arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
> index c6999624ed8a..68c5a6c819ae 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
> +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
> @@ -585,6 +585,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] 5+ messages in thread
* Re: [PATCH] arm64: dts: hikey960: Define wl1837 power capabilities
2018-06-13 19:36 ` John Stultz
@ 2018-06-14 6:20 ` Kalle Valo
0 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2018-06-14 6:20 UTC (permalink / raw)
To: John Stultz
Cc: Ryan Grachek, Wei Xu, Mark Rutland,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
Catalin Marinas, Will Deacon, lkml, Rob Herring,
Valentin Schneider, linux-arm-kernel, Eyal Reizer, Tony Lindgren,
linux-wireless, linux-wireless
John Stultz <john.stultz@linaro.org> writes:
> On Wed, Jun 13, 2018 at 11:03 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. This fixes
>> a regression found here: https://lkml.org/lkml/2018/6/12/930
>>
>> 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 also fixes a functional regression with wifi on the
> HiKey960 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 too?
CCing wireless folks as well.
--
Kalle Valo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] arm64: dts: hikey960: Define wl1837 power capabilities
2018-06-13 18:03 [PATCH] arm64: dts: hikey960: Define wl1837 power capabilities Ryan Grachek
2018-06-13 19:36 ` John Stultz
2018-06-13 21:47 ` Valentin Schneider
@ 2018-06-28 20:26 ` Wei Xu
2 siblings, 0 replies; 5+ messages in thread
From: Wei Xu @ 2018-06-28 20:26 UTC (permalink / raw)
To: Ryan Grachek
Cc: valentin.schneider, Rob Herring, Mark Rutland, Catalin Marinas,
Will Deacon, linux-arm-kernel, devicetree, linux-kernel
Hi Ryan,
On 2018/6/13 19:03, 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. This fixes
> a regression found here: https://lkml.org/lkml/2018/6/12/930
>
> Signed-off-by: Ryan Grachek <ryan@edited.us>
> ---
Applied to hisilicon fix tree.
Thanks!
Best Regards,
Wei
> arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
> index c6999624ed8a..68c5a6c819ae 100644
> --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
> +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts
> @@ -585,6 +585,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] 5+ messages in thread
end of thread, other threads:[~2018-06-28 20:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-13 18:03 [PATCH] arm64: dts: hikey960: Define wl1837 power capabilities Ryan Grachek
2018-06-13 19:36 ` John Stultz
2018-06-14 6:20 ` Kalle Valo
2018-06-13 21:47 ` Valentin Schneider
2018-06-28 20:26 ` 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).