Skip to content

PM: runtime: Update device status before letting suppliers suspend (another take)

Rafael J. Wysocki linux-pm lkml 2 versions – New

Get series with b4
b4 am 4641414.31r3eYUQgx@kreacher

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 4 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Revert "PM: runtime: Update device status before letting suppliers suspend"drivers/base/power/runtime.c+25 -370 replies
2/2PM: runtime: Defer suspending suppliersdrivers/base/power/runtime.c+39 -60 replies

Reviews trailers per patch

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

PatchUlf Hansson
1/2R-b
2/2Diagnosed-by R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] PM: runtime: Update device status before letting suppliers suspend (another take)
Quoted 7 lines · CET Rafael J. Wysocki

Hi All,

The previous attempt to address the issue tackled by this series, commit 44cc89f76464 ("PM: runtime: Update device status before letting suppliers suspend") was incorrect, because it introduced a rather nasty race condition into __rpm_callback(), so let's revert it (patch [1/2]).

Quoted 8 lines

Instead, let's avoid suspending the suppliers immediately after dropping the PM-runtime references to them and do that later, when the status of the consumer has changed to RPM_SUSPENDED.

Please see the patch changelogs for details.

Elaine, please test this series on the system where you saw the original problem.

The above still applies.

The v2 is sent because of some updates in the second patch, plus the tags from Ulf.

Thanks!