drm/omap: fix primary-plane's possible_crtcs
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Dec 2016 14:07:11 +0000 (16:07 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 8 Dec 2016 11:42:57 +0000 (13:42 +0200)
commite43f2c3395fd36ec9f8d069af07bcd3eae5fde17
treea7d194d0ad26eb310c9ec1566c69455f37b41a33
parent5cd57a46e3e3dc088b50bbfcdc85d9e0d9c22159
drm/omap: fix primary-plane's possible_crtcs

We set the possible_crtc for all planes to "(1 << priv->num_crtcs) - 1",
which is fine as the HW planes can be used fro all crtcs. However, when
we're doing that, we are still incrementing 'num_crtcs', and we'll end
up with bad possible_crtcs, preventing the use of the primary planes.

This patch passes a possible_crtcs mask to plane init function so that
we get correct possible_crtc.

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