]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: Suspend/resume display pipeline as early/late as possible
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 11 Jun 2018 12:24:59 +0000 (14:24 +0200)
committerInki Dae <inki.dae@samsung.com>
Tue, 24 Jul 2018 07:28:47 +0000 (16:28 +0900)
commit9d896e2039cb0f7127df54eaf424dcfa874f6f44
treea31dc84465c7864394f27d5c58863228fbc398f8
parent0def56534b945509f0ef94d9460785c80737b042
drm/exynos: Suspend/resume display pipeline as early/late as possible

In the current code, exynos_drm_suspend() function is called after all
real devices (CRTCs, Encoders, etc) are suspended, because Exynos DRM
virtual platform device is created as last device in the system (as
a part of DRM registration). None of the devices for real hardware
modules has its own system suspend/resume callbacks, so it doesn't
change any order of the executed code, but it has a side-effect:
runtime PM callbacks for real devices are not executed, because those
devices are considered by PM core as already suspended. This might
cause issues on boards with complex pipelines, where something
depends on the runtime PM state of the given device.

To ensure that exynos_drm_suspend() is called before any suspend
callback from the real devices, assign it to .prepare callback. Same
for exynos_drm_resume(), using .complete callback ensures that all
real devices have been resumed when calling it.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c