drm/meson: Use crtc_state for hdisplay and fix atomic flush/enable sync for vsync...
authorNeil Armstrong <narmstrong@baylibre.com>
Tue, 4 Apr 2017 12:15:21 +0000 (14:15 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Tue, 4 Apr 2017 15:49:30 +0000 (17:49 +0200)
commitcc0c43a0450ce46fcd8f2aa793703d36d9af761e
tree303d381e95b7fefc1a4a521a822626b243d999ba
parent386d3299ef7298a3bc57e2ff3498ce41ac7f6184
drm/meson: Use crtc_state for hdisplay and fix atomic flush/enable sync for vsync commit

Clean the crtc_enable by using the proper crtc_state instead of the state
of the primary plane state data.

Also fix the dependency to commit the plane changes even if enable is called
after the flush.

Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
drivers/gpu/drm/meson/meson_crtc.c