drm/imx: switch to universal planes
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 6 Nov 2015 10:08:02 +0000 (11:08 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 19 Nov 2015 11:51:38 +0000 (12:51 +0100)
commit4389559980599ad99f39a004d6e9aaf9c2180ab8
tree308a567f4b4f1534d1cc1611112a655b5ae85c11
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
drm/imx: switch to universal planes

Use drm_universal_plane_init to create the planes, create the primary
plane first and use drm_crtc_init_with_planes to associate it with
the crtc.
This gets rid of the unused fallback primary plane previously created
by drm_crtc_init and fixes a NULL pointer dereference issue that can
be triggered by a modeset from userspace when fbdev helpers are
enabled [1].

[1] https://lkml.org/lkml/2015/11/4/107

Reported-by: Liu Ying <Ying.Liu@freescale.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Liu Ying <Ying.Liu@freescale.com>
drivers/gpu/drm/imx/imx-drm-core.c
drivers/gpu/drm/imx/imx-drm.h
drivers/gpu/drm/imx/ipuv3-crtc.c
drivers/gpu/drm/imx/ipuv3-plane.c
drivers/gpu/drm/imx/ipuv3-plane.h
This page took 0.02565 seconds and 5 git commands to generate.