]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: use atomic helper commit
authorInki Dae <inki.dae@samsung.com>
Fri, 20 Jan 2017 03:51:41 +0000 (12:51 +0900)
committerInki Dae <inki.dae@samsung.com>
Mon, 30 Jan 2017 23:49:47 +0000 (08:49 +0900)
commit90a14cddbfc07fd72b12230a5d73ce64a5800284
treec93fdeb656dc8cdb6c86c204448594ed18d5cb12
parentf0fec7056726132fc50bfe3c79b09dd55ed11ce5
drm/exynos: use atomic helper commit

This patch replaces specific atomic commit function
with atomic helper commit one.

For this, it removes existing atomic commit function
and relevant code specific to Exynos DRM and makes
atomic helper commit to be used instead.

Below are changes for the use of atomic helper commit:
- add atomic_commit_tail callback specific to Exynos DRM
  . default implemention of atomic helper doesn't mesh well
    with runtime PM so the device driver which supports runtime
    PM should call drm_atomic_helper_commit_modeset_enables function
    prior to drm_atomic_helper_commit_planes function call.
    atomic_commit_tail callback implements this call ordering.
- allow plane commit only in case that CRTC device is enabled.
  . for this, it calls atomic_helper_commit_planes function
    with DRM_PLANE_COMMIT_ACTIVE_ONLY flag in atomic_commit_tail callback.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Reviewed-by: Gustavo Padovan <gustavo.padovan@collabora.com>
drivers/gpu/drm/exynos/exynos_drm_crtc.c
drivers/gpu/drm/exynos/exynos_drm_drv.c
drivers/gpu/drm/exynos/exynos_drm_fb.c