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

From: Mark Brown
Date: Wed Jan 09 2019 - 11:57:32 EST


On Tue, Jan 08, 2019 at 10:56:32AM +0000, Claudiu.Beznea@xxxxxxxxxxxxx wrote:
> From: Claudiu Beznea <claudiu.beznea@xxxxxxxxxxxxx>
>
> Add helper to check if regulator will be disabled in suspend.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea@xxxxxxxxxxxxx>

This feels like it's the wrong way round - if this is configurable I'd
expect something to configure the suspend mode and then for that to
arrange to configure the regulator appropriately (along with anything
else that needs doing) rather than to infer the configuration from the
regulator state which feels fragile. But based on the cover letter
that's kind of like what the initial proposal about target states was so
perhaps this is the way we end up going... this certainly looks a lot
less impactful that the target state stuff though.

Attachment: signature.asc
Description: PGP signature