Skip to content

driver core: Fixes related to device links

Rafael J. Wysocki linux-pm linux-tegra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2PM-runtime: Fix __pm_runtime_set_status() race with runtime resumedrivers/base/power/runtime.c+18 -65 replies
2/2driver core: Fix possible supplier PM-usage counter imbalancedrivers/base/core.c drivers/base/power/runtime.c include/linux/pm_runtime.h+33 -1913 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchUlf Hansson
1/2R-b
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] driver core: Fixes related to device links

Hi Greg at al,

These fix two issues on top of the recent device links material in driver-core/driver-core-next.

The first one fixes a race condition that may trigger when __pm_runtime_set_status() is used incorrectly (that is, when it is called with PM-runtime enabled for the target device and working).

The second one fixes a supplier PM-runtime usage counter imbalance resulting from adding and removing (e.g. in the error code path) a stateless device link to it from within the consumer driver's probe callback.

Please refer to the patch changelogs for details.

Cheers,
Rafael