drm: omapdrm: Replace DSS manager state check with omapdrm CRTC state
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 17 Apr 2016 23:54:31 +0000 (02:54 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 19 Dec 2016 09:24:57 +0000 (11:24 +0200)
commitf933a3a93b2d74a255643b326316eee392fa1b80
tree2ed3fcd4ab4258d7e600d7e9f13fb935b95ff67f
parent6b5538d4ecb7679d7dc6b45f2f4db3e6958d8fe5
drm: omapdrm: Replace DSS manager state check with omapdrm CRTC state

Instead of conditioning planes update based on the DSS manager hardware
state, use the enabled field newly added to the omap_crtc structure.
This reduces the dependency from the DRM layer to the DSS layer.

The enabled field is a transitory measure, the implementation should use
the CRTC atomic state instead. However, given that CRTCs are currently
not enabled/disabled through their .enable() and .disable() operations
but through a convoluted code paths starting at the associated encoder
operations, there is not clear guarantee that the atomic state always
matches the hardware state. This will be refactored later, at which
point the enabled field will be removed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_crtc.c