Merge branch 'pm-runtime'

Merge a fix for a race condition related to device removal (Bart Van
Assche) for 7.0-rc5.

* pm-runtime:
  PM: runtime: Fix a race condition related to device removal
This commit is contained in:
Rafael J. Wysocki
2026-03-19 14:49:44 +01:00

View File

@@ -1895,6 +1895,7 @@ void pm_runtime_reinit(struct device *dev)
void pm_runtime_remove(struct device *dev) void pm_runtime_remove(struct device *dev)
{ {
__pm_runtime_disable(dev, false); __pm_runtime_disable(dev, false);
flush_work(&dev->power.work);
pm_runtime_reinit(dev); pm_runtime_reinit(dev);
} }