]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1cacf740480ba142f4d553fe8d1bec7d57f2afa8
treea7d194d0ad26eb310c9ec1566c69455f37b41a33
parentb165558631b9b2dd919e08cef9c8a15ed9babddb
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