aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <[email protected]>2013-11-07 01:51:15 +0100
committerRafael J. Wysocki <[email protected]>2013-11-07 19:13:49 +0100
commitbaab52ded242c35a2290e1fa82e0cc147d0d8c1a (patch)
tree45264cbeae6fb364ff54d1fd7903040aef2e294e /lib/test-string_helpers.c
parentd66e6db28df330c0e5b61f9863754fc2fd37f8ca (diff)
PM / runtime: Use pm_runtime_put_sync() in __device_release_driver()
Commit fa180eb448fa (PM / Runtime: Idle devices asynchronously after probe|release) modified __device_release_driver() to call pm_runtime_put(dev) instead of pm_runtime_put_sync(dev) before detaching the driver from the device. However, that was a mistake, because pm_runtime_put(dev) causes rpm_idle() to be queued up and the driver may be gone already when that function is executed. That breaks the assumptions the drivers have the right to make about the core's behavior on the basis of the existing documentation and actually causes problems to happen, so revert that part of commit fa180eb448fa and restore the previous behavior of __device_release_driver(). Reported-by: Tomi Valkeinen <[email protected]> Fixes: fa180eb448fa (PM / Runtime: Idle devices asynchronously after probe|release) Signed-off-by: Rafael J. Wysocki <[email protected]> Acked-by: Kevin Hilman <[email protected]> Acked-by: Ulf Hansson <[email protected]> Cc: 3.10+ <[email protected]> # 3.10+
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions