2015-05-06 16:33:23

by Javier Martinez Canillas

[permalink] [raw]
Subject: [PATCH 1/1] ARM: dts: Add keep-power-in-suspend to WiFi SDIO node for Snow

The Marvell mwifiex driver prevents the system to enter into a suspend
state if the card power is not preserved during a suspend/resume cycle.

So Suspend-to-RAM and Suspend-to-idle are failing on Exynos5250 Snow.

Add the keep-power-in-suspend Power Management property to the SDIO/MMC
node so the mwifiex suspend handler doesn't fail and the system is able
to enter into a suspend state.

Signed-off-by: Javier Martinez Canillas <[email protected]>
---

Kukjin and Krzysztof,

I didn't notice that Snow was also missing this property when I did the
same change for Peach Pit and and Pi Chromebooks [0], sorry about that.

Best regards,
Javier

[0]: https://lkml.org/lkml/2015/4/7/377
---
arch/arm/boot/dts/exynos5250-snow.dts | 1 +
1 file changed, 1 insertion(+)

diff --git a/arch/arm/boot/dts/exynos5250-snow.dts b/arch/arm/boot/dts/exynos5250-snow.dts
index 2657e842e5a5..1eca97ee4bd6 100644
--- a/arch/arm/boot/dts/exynos5250-snow.dts
+++ b/arch/arm/boot/dts/exynos5250-snow.dts
@@ -567,6 +567,7 @@
num-slots = <1>;
broken-cd;
cap-sdio-irq;
+ keep-power-in-suspend;
card-detect-delay = <200>;
samsung,dw-mshc-ciu-div = <3>;
samsung,dw-mshc-sdr-timing = <2 3>;
--
2.1.4


2015-05-06 16:36:28

by Doug Anderson

[permalink] [raw]
Subject: Re: [PATCH 1/1] ARM: dts: Add keep-power-in-suspend to WiFi SDIO node for Snow

Javier,

On Wed, May 6, 2015 at 9:32 AM, Javier Martinez Canillas
<[email protected]> wrote:
> The Marvell mwifiex driver prevents the system to enter into a suspend
> state if the card power is not preserved during a suspend/resume cycle.
>
> So Suspend-to-RAM and Suspend-to-idle are failing on Exynos5250 Snow.
>
> Add the keep-power-in-suspend Power Management property to the SDIO/MMC
> node so the mwifiex suspend handler doesn't fail and the system is able
> to enter into a suspend state.
>
> Signed-off-by: Javier Martinez Canillas <[email protected]>
> ---
>
> Kukjin and Krzysztof,
>
> I didn't notice that Snow was also missing this property when I did the
> same change for Peach Pit and and Pi Chromebooks [0], sorry about that.
>
> Best regards,
> Javier
>
> [0]: https://lkml.org/lkml/2015/4/7/377
> ---
> arch/arm/boot/dts/exynos5250-snow.dts | 1 +
> 1 file changed, 1 insertion(+)

Reviewed-by: Doug Anderson <[email protected]>

2015-05-08 00:09:19

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH 1/1] ARM: dts: Add keep-power-in-suspend to WiFi SDIO node for Snow

2015-05-07 1:36 GMT+09:00 Doug Anderson <[email protected]>:
> Javier,
>
> On Wed, May 6, 2015 at 9:32 AM, Javier Martinez Canillas
> <[email protected]> wrote:
>> The Marvell mwifiex driver prevents the system to enter into a suspend
>> state if the card power is not preserved during a suspend/resume cycle.
>>
>> So Suspend-to-RAM and Suspend-to-idle are failing on Exynos5250 Snow.
>>
>> Add the keep-power-in-suspend Power Management property to the SDIO/MMC
>> node so the mwifiex suspend handler doesn't fail and the system is able
>> to enter into a suspend state.
>>
>> Signed-off-by: Javier Martinez Canillas <[email protected]>
>> ---
>>
>> Kukjin and Krzysztof,
>>
>> I didn't notice that Snow was also missing this property when I did the
>> same change for Peach Pit and and Pi Chromebooks [0], sorry about that.
>>
>> Best regards,
>> Javier
>>
>> [0]: https://lkml.org/lkml/2015/4/7/377
>> ---
>> arch/arm/boot/dts/exynos5250-snow.dts | 1 +
>> 1 file changed, 1 insertion(+)
>
> Reviewed-by: Doug Anderson <[email protected]>

Thanks, applied to dts-fixes branch, I'll try to push it sooner than
later but it depends on status of previous pull requests.

Best regards,
Krzysztof

2015-05-08 18:14:13

by Kukjin Kim

[permalink] [raw]
Subject: Re: [PATCH 1/1] ARM: dts: Add keep-power-in-suspend to WiFi SDIO nodefor Snow

On 05/08/15 09:09, Krzysztof Kozlowski wrote:
> 2015-05-07 1:36 GMT+09:00 Doug Anderson <[email protected]>:
>> Javier,
>>
>> On Wed, May 6, 2015 at 9:32 AM, Javier Martinez Canillas
>> <[email protected]> wrote:
>>> The Marvell mwifiex driver prevents the system to enter into a suspend
>>> state if the card power is not preserved during a suspend/resume cycle.
>>>
>>> So Suspend-to-RAM and Suspend-to-idle are failing on Exynos5250 Snow.
>>>
>>> Add the keep-power-in-suspend Power Management property to the SDIO/MMC
>>> node so the mwifiex suspend handler doesn't fail and the system is able
>>> to enter into a suspend state.
>>>
>>> Signed-off-by: Javier Martinez Canillas <[email protected]>
>>> ---
>>>
>>> Kukjin and Krzysztof,
>>>
>>> I didn't notice that Snow was also missing this property when I did the
>>> same change for Peach Pit and and Pi Chromebooks [0], sorry about that.
>>>
No problem and thanks for your effort.

>>> Best regards,
>>> Javier
>>>
>>> [0]: https://lkml.org/lkml/2015/4/7/377
>>> ---
>>> arch/arm/boot/dts/exynos5250-snow.dts | 1 +
>>> 1 file changed, 1 insertion(+)
>>
>> Reviewed-by: Doug Anderson <[email protected]>
>
Doug, thanks for your review.

> Thanks, applied to dts-fixes branch, I'll try to push it sooner than
> later but it depends on status of previous pull requests.
>
Krzysztof, I've applied this into my tree directly.
Thanks for your gentle reminder and time.

- Kukjin