Re: [PATCH 1/4] PM / core: Introduce dpm_async_fn() helper

2019-04-10 Thread Rafael J. Wysocki
On Saturday, March 16, 2019 5:59:25 AM CEST Yangtao Li wrote: > When we want to execute device pm functions asynchronously, we'll > do the following for the device: > > 1) reinit_completion(>power.completion); > 2) Check if the device enables asynchronous suspend. > 3) If necessary, execute

[PATCH 1/4] PM / core: Introduce dpm_async_fn() helper

2019-03-15 Thread Yangtao Li
When we want to execute device pm functions asynchronously, we'll do the following for the device: 1) reinit_completion(>power.completion); 2) Check if the device enables asynchronous suspend. 3) If necessary, execute the corresponding function asynchronously. There are a lot of such