aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
diff options
context:
space:
mode:
authorUlf Hansson <[email protected]>2016-10-17 18:17:01 +0000
committerRafael J. Wysocki <[email protected]>2016-11-09 14:49:37 +0000
commita8636c89648ab12e59d8f3aa667ec76fc96fd643 (patch)
tree7a4faf0aa71ffacf89e27c878803cec2137356dc /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
parentnet: smsc911x: Synchronize the runtime PM status during system suspend (diff)
downloadkernel-a8636c89648ab12e59d8f3aa667ec76fc96fd643.tar.gz
kernel-a8636c89648ab12e59d8f3aa667ec76fc96fd643.zip
PM / Runtime: Don't allow to suspend a device with an active child
When resuming a device in __pm_runtime_set_status(), the prerequisite is that its parent must already be active, else an error code is returned and the device's status remains suspended. When suspending a device there is no similar constraints being validated. Let's change this to make the behaviour consistent, by not allowing to suspend a device with an active child, unless it has been explicitly set to ignore its children. Signed-off-by: Ulf Hansson <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions