aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2025-02-14 10:21:30 +0000
committerGreg Kroah-Hartman <[email protected]>2025-02-20 14:22:02 +0000
commit32ce5d87d52213a50a513750f01a56f4d01f50cb (patch)
tree4c26744a7b454233ff72b1cf1577ed4073970b56 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentchar: misc: deallocate static minor in error path (diff)
downloadkernel-32ce5d87d52213a50a513750f01a56f4d01f50cb.tar.gz
kernel-32ce5d87d52213a50a513750f01a56f4d01f50cb.zip
bus: simple-pm-bus: fix forced runtime PM use
The simple-pm-bus driver only enables runtime PM for some buses ('simple-pm-bus') yet has started calling pm_runtime_force_suspend() and pm_runtime_force_resume() during system suspend unconditionally. This currently works, but that is not obvious and depends on implementation details which may change at some point. Add dedicated system sleep ops and only call pm_runtime_force_suspend() and pm_runtime_force_resume() for buses that use runtime PM to avoid any future surprises. Fixes: c45839309c3d ("drivers: bus: simple-pm-bus: Use clocks") Cc: Liu Ying <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Reviewed-by: Ulf Hansson <[email protected]> Acked-by: Liu Ying <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions