Re: [RFC] PM: Using runtime PM callbacks for system suspend/resume

2017-09-07 Thread Rafael J. Wysocki
On Thursday, September 7, 2017 8:56:07 AM CEST Ulf Hansson wrote: > On 7 September 2017 at 00:14, Rafael J. Wysocki wrote: > > Hi, > > > > It occurred to me earlier today that it should be possible to modify the > > PM core to get the functionality of pm_runtime_force_suspend/resume() from > > it

Re: [RFC] PM: Using runtime PM callbacks for system suspend/resume

2017-09-06 Thread Ulf Hansson
On 7 September 2017 at 00:14, Rafael J. Wysocki wrote: > Hi, > > It occurred to me earlier today that it should be possible to modify the > PM core to get the functionality of pm_runtime_force_suspend/resume() from it > in a somewhat nicer way which should be possible to extend to middle layers >

[RFC] PM: Using runtime PM callbacks for system suspend/resume

2017-09-06 Thread Rafael J. Wysocki
Hi, It occurred to me earlier today that it should be possible to modify the PM core to get the functionality of pm_runtime_force_suspend/resume() from it in a somewhat nicer way which should be possible to extend to middle layers (bus types, PM domains etc). Say we have a flag telling the PM cor