drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 20 Jul 2017 13:01:16 +0000 (15:01 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 26 Jul 2017 11:45:08 +0000 (13:45 +0200)
commit81a099ac49db0f210a0f759119de176bc81a94ae
tree4c4727bb80edade9076eabc9f49ad6753eac7045
parentfc2157b6edcd68e99a51323bae4c21c273699ca7
drm/atomic: implement drm_atomic_helper_commit_tail for runtime_pm users

The current drm_atomic_helper_commit_tail helper works only if the CRTC is
accessible, and documents an alternative implementation that is supposed to
be used if that happens.

That implementation is then duplicated by some drivers. Instead of
documenting it, let's implement an helper that all the relevant users can
use directly.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/a8f92dc70048bab746e94dadd1c23200626aff60.1500555652.git-series.maxime.ripard@free-electrons.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/exynos/exynos_drm_fb.c
drivers/gpu/drm/rockchip/rockchip_drm_fb.c
include/drm/drm_atomic_helper.h