drm/omap: fix plane check when crtc is disabled
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 10 Jun 2016 09:50:39 +0000 (12:50 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 2 Nov 2016 08:38:28 +0000 (10:38 +0200)
commitaaf7642e98917fc95c260cbee98d2f426754b265
tree83fcd7dcf32c461b50ab516edf2b3db4fc4781ca
parentfb422950c6cd726fd36eb72a7cf84583440a18a2
drm/omap: fix plane check when crtc is disabled

I sometimes see:

[drm:drm_framebuffer_remove [drm]] *ERROR* failed to reset crtc ed2a6c00
when fb was deleted: -22

which comes from drm_framebuffer_remove() when it's disabling the crtc
with zeroed drm_mode_set.

The problem in omap_plane_atomic_check() is that it will use those
zeroed fields to verify if the setup is correct.

This patch makes omap_plane_atomic_check() return 0 if the crtc is
disabled.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_plane.c