drm/omap: fix scaling limits for WB
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 22 Dec 2015 21:45:20 +0000 (15:45 -0600)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 1 Mar 2018 07:18:18 +0000 (09:18 +0200)
commit13bb1601c721f395d272d58438c9e747317f7c1a
tree3e9654f7e10df7ae6d661a83b82a34b218f5bbf5
parent1317ef2113a14b631df15c9d09ce1283836c1456
drm/omap: fix scaling limits for WB

WB has additional scaling limits when the output color format is one of
the YUV formats. These limits are not handled at the moment, causing
bad scaling and/or NULL dereference crash.

This patchs adds the check so that dispc returns an error for bad
scaling request.

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