drm: omapdrm: if omap_plane_atomic_update fails, disable plane
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 29 May 2015 08:06:07 +0000 (11:06 +0300)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 12 Jun 2015 19:52:51 +0000 (22:52 +0300)
commit794a65ffba77f63ecfc7d23ca6406cc23deab202
treeee79b06e7d5db8063c39707c13b02287d4eed1db
parent11ffd031e3e5b9cc0232aad549bb08eb14612f43
drm: omapdrm: if omap_plane_atomic_update fails, disable plane

omap_plane_atomic_update() calls dispc_ovl_setup(), which can fail (but
shouldn't). To make the code a bit more robust, make sure the plane gets
disabled if dispc_ovl_setup() fails, as otherwise we might get illegal
HW configuration leading to error interrupts.

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