Re: [PATCH v2 2/3] regulator: core: add helper to check if regulator is disabled in suspend

From: Claudiu.Beznea
Date: Tue Jan 15 2019 - 04:19:22 EST




On 15.01.2019 00:53, Mark Brown wrote:
> On Fri, Jan 11, 2019 at 02:08:19PM +0000, Claudiu.Beznea@xxxxxxxxxxxxx wrote:
>> On 11.01.2019 14:39, Mark Brown wrote:
>
>>> Like I say I'm working offline so I can't check the links but it sounds
>>> like you're saying that the existing suspend mode configuration features
>>> are enough for your systems?
>
>> Yes, if we rely on the fact that core's regulator device tree bindings for
>> suspend-to-mem/suspend-to-standby were filled correctly.
>
>> The function I added here was to double check that core's regulator will be
>> off in suspend/standby based on what was parsed from DT.
>
> Ah, so it's being used as a consistency check?

Yes, that was the idea.

Thank you,
Claudiu Beznea

> OK, that does make sense
> to me.
>