summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/arm/display/komeda/komeda_kms.h
diff options
context:
space:
mode:
authorDouglas Anderson <dianders@chromium.org>2023-09-01 16:41:12 -0700
committerDouglas Anderson <dianders@chromium.org>2023-09-21 10:38:11 -0700
commitc478768ce80772e932f246d9ce0378f2a6b7cfeb (patch)
treebce611e8c70a28004a1c27da2f85350904b6e422 /drivers/gpu/drm/arm/display/komeda/komeda_kms.h
parentcd273b7f1d8dcacb2e9a9a62280b6daba70a5efe (diff)
drm/armada: Call drm_atomic_helper_shutdown() at shutdown time
Based on grepping through the source code this driver appears to be missing a call to drm_atomic_helper_shutdown() at system shutdown time. Among other things, this means that if a panel is in use that it won't be cleanly powered off at system shutdown time. The fact that we should call drm_atomic_helper_shutdown() in the case of OS shutdown/restart comes straight out of the kernel doc "driver instance overview" in drm_drv.c. This driver was fairly easy to update. The drm_device is stored in the drvdata so we just have to make sure the drvdata is NULL whenever the device is not bound. To make things simpler, drm_atomic_helper_shutdown() has been modified to consider a NULL drm_device as a noop in the patch ("drm/atomic-helper: drm_atomic_helper_shutdown(NULL) should be a noop"). Suggested-by: Maxime Ripard <mripard@kernel.org> Reviewed-by: Maxime Ripard <mripard@kernel.org> Signed-off-by: Douglas Anderson <dianders@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20230901164111.RFT.1.I3d5598bd73a59b5ded71430736c93f67dc5dea61@changeid
Diffstat (limited to 'drivers/gpu/drm/arm/display/komeda/komeda_kms.h')
0 files changed, 0 insertions, 0 deletions