diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-03-19 17:47:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-24 13:07:31 +0300 |
commit | f68e0080674da512f9dbe2cae059c641a076c593 (patch) | |
tree | 64aa2db4931bfd4c3a750ce0155615231d87f06c /scripts/mod | |
parent | 5812307cceb2b9f3b14f617ae7e0f0fd974836c1 (diff) | |
download | linux-f68e0080674da512f9dbe2cae059c641a076c593.tar.xz |
Revert "PM: runtime: Update device status before letting suppliers suspend"
commit 0cab893f409c53634d0d818fa414641cbcdb0dab upstream.
Revert commit 44cc89f76464 ("PM: runtime: Update device status
before letting suppliers suspend") that introduced a race condition
into __rpm_callback() which allowed a concurrent rpm_resume() to
run and resume the device prematurely after its status had been
changed to RPM_SUSPENDED by __rpm_callback().
Fixes: 44cc89f76464 ("PM: runtime: Update device status before letting suppliers suspend")
Link: https://lore.kernel.org/linux-pm/24dfb6fc-5d54-6ee2-9195-26428b7ecf8a@intel.com/
Reported-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: 4.10+ <stable@vger.kernel.org> # 4.10+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/mod')
0 files changed, 0 insertions, 0 deletions