On Wed, Jan 25, 2017 at 02:05:58PM -0800, Dmitry Torokhov wrote: > > Yes. Querying the suspend mode configuration would be one way to do it > > already. > Suspend mode of what though? Regulator? I would not mind cleaning up at > least some of the drivers if we had a generic API for doing such > query... Would it be something like: Yes, though there's some fun working out exactly when to query them. Early resume should be safe. > bool device_has_lost_state(struct device *dev, > struct regulator *supplies) > with DT systems going strictly off regulator data and ACPI throwing > its internal state in the mix? > Or you meant something else? I meant looking at individual regulators, though I guess that does have a list of supplied as an argument.
Attachment:
signature.asc
Description: PGP signature