drm/omap: check if rotation is supported before commit
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 27 Aug 2015 10:09:22 +0000 (13:09 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 3 Mar 2016 15:36:44 +0000 (17:36 +0200)
commitbfeece553335f9b9bf0d4dc9ea8a602a2248dfd6
treed1a83329d4cc2be8ed3a89de3ebda42e889ac430
parent6bdad6cf98844e76f678da35dea09193bfb78be1
drm/omap: check if rotation is supported before commit

omapdrm is missing a check on the validity of the rotation property.
This leads to omapdrm possibly trying to use rotation on non-rotateable
framebuffer, which causes the overlay setup to fail.

This patch adds the necessary check to omap_plane_atomic_check().

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