RE: [PATCH V2 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-05-19 Thread Ran Wang
Hi Pavel, On Monday, May 20, 2019 05:35, Pavel Machek wrote: > > > --- a/include/linux/pm_wakeup.h > > > @@ -70,6 +71,7 @@ struct wakeup_source { > > unsigned long wakeup_count; > > boolactive:1; > > boolautosleep_enabled:1; > > +

Re: [PATCH V2 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-05-19 Thread Pavel Machek
> --- a/include/linux/pm_wakeup.h > @@ -70,6 +71,7 @@ struct wakeup_source { > unsigned long wakeup_count; > boolactive:1; > boolautosleep_enabled:1; > + struct device *attached_dev; > }; > > #ifdef CONFIG_PM_SLEEP

[PATCH V2 1/3] PM: wakeup: Add routine to help fetch wakeup source object.

2019-05-16 Thread Ran Wang
Some user might want to go through all registered wakeup sources and doing things accordingly. For example, SoC PM driver might need to do HW programming to prevent powering down specific IP which wakeup source depending on. And is user's responsibility to identify if this wakeup source he is