]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Runtime: Avoid resuming devices again in pm_runtime_force_resume()
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 30 May 2016 09:33:12 +0000 (11:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 16 Jun 2016 13:14:36 +0000 (15:14 +0200)
commitf6d90859ba6792425c1f654b9db5a95cd18fca07
tree4800bf074558395e79d82769dbaaeb13146d10b0
parent8e1b3284dd32d01cd61de71600fb19547d3a40b1
PM / Runtime: Avoid resuming devices again in pm_runtime_force_resume()

If the runtime PM status of the device isn't RPM_SUSPENDED, prevent the
pm_runtime_force_resume() from invoking the ->runtime_resume() callback
for the device, as it's not the expected behaviour from the subsystem/driver.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/runtime.c