drm/armada: Construct a temporary crtc state for plane checks
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 23 Jan 2018 17:08:55 +0000 (19:08 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 5 Mar 2018 18:35:14 +0000 (20:35 +0200)
commit57270b8191a9d3d15d8c77287733ba1ce5213937
treebd00b8f2064e19341d6597a2b24ddec6482b6f25
parentd8eb9de42320a0d02bd12118a8ac51d14bcaf5e1
drm/armada: Construct a temporary crtc state for plane checks

As armada isn't an atomic driver trying to pass a non-populated
crtc->state to drm_atomic_helper_check_plane_state() will end in tears.
Construct a temporary crtc state a la drm_plane_helper_check_update()
and pass that instead. For now we just really need crtc_state->enable
to be there.

Cc: Dave Airlie <airlied@redhat.com>
Cc: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180123170857.13818-3-ville.syrjala@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Acked-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/armada/armada_crtc.c
drivers/gpu/drm/armada/armada_overlay.c