Re: [PATCH v3 1/5] hwmon: (core) Inherit power properties to hdev

From: Nicolin Chen
Date: Thu Oct 25 2018 - 19:21:46 EST


On Thu, Oct 25, 2018 at 06:55:31AM +0000, linux@xxxxxxxxxxxx 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