Messages in this thread | | | Date | Thu, 25 Oct 2018 16:21:38 -0700 | From | Nicolin Chen <> | Subject | Re: [PATCH v3 1/5] hwmon: (core) Inherit power properties to hdev |
| |
On Thu, Oct 25, 2018 at 06:55:31AM +0000, linux@roeck-us.net wrote: > > won't work then. I guess it'd be safer to ignore the problem of > > the power node, i.e. using parent dev pointer for pm runtime. > > > It might be worthwhile looking up how other virtal devices handle > this problem. Maybe the hwmon code could have its own suspend/resume > callbacks. Not sure how to make that work, though, and what those > callbacks would (have to) do.
I am adding a core pm pointer to the class. A hwmon driver will also need to pass a private pm pointer in a chip/info structure. I will send it soon.
Thanks Nicolin
| |