aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2022-12-02 15:30:28 +0100
committerRafael J. Wysocki <[email protected]>2022-12-05 15:43:37 +0100
commitbc80c2e438dcbfcf748452ec0f7ad5b79ff3ad88 (patch)
tree7b1b05fdfbb1be71fc41b18d05855251b9f84bc9 /drivers/fpga/fpga-mgr.c
parent76dcd734eca23168cb008912c0f69ff408905235 (diff)
PM: runtime: Do not call __rpm_callback() from rpm_idle()
Calling __rpm_callback() from rpm_idle() after adding device links support to the former is a clear mistake. Not only it causes rpm_idle() to carry out unnecessary actions, but it is also against the assumption regarding the stability of PM-runtime status across __rpm_callback() invocations, because rpm_suspend() and rpm_resume() may run in parallel with __rpm_callback() when it is called by rpm_idle() and the device's PM-runtime status can be updated by any of them. Fixes: 21d5c57b3726 ("PM / runtime: Use device links") Link: https://lore.kernel.org/linux-pm/[email protected] Signed-off-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Adrian Hunter <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions