Re: [PATCH v1] PM: runtime: Update device status before letting suppliers suspend

2021-02-25 Thread Rafael J. Wysocki
On Thu, Feb 25, 2021 at 2:32 AM elaine.zhang wrote: > > Hi, Rafael: > > 在 2021/2/25 上午1:53, Rafael J. Wysocki 写道: > > From: Rafael J. Wysocki > > > > Because the PM-runtime status of the device is not updated in > > __rpm_callback(), attempts to suspend the suppliers of the given > > device trigg

Re: [PATCH v1] PM: runtime: Update device status before letting suppliers suspend

2021-02-24 Thread elaine.zhang
Hi, Rafael: 在 2021/2/25 上午1:53, Rafael J. Wysocki 写道: From: Rafael J. Wysocki Because the PM-runtime status of the device is not updated in __rpm_callback(), attempts to suspend the suppliers of the given device triggered by rpm_put_suppliers() called by it may fail. Fix this by making __rpm_

[PATCH v1] PM: runtime: Update device status before letting suppliers suspend

2021-02-24 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Because the PM-runtime status of the device is not updated in __rpm_callback(), attempts to suspend the suppliers of the given device triggered by rpm_put_suppliers() called by it may fail. Fix this by making __rpm_callback() update the device's status to RPM_SUSPENDED be