MLK-18116: drm: imx: dcss: fix crtc enumeration problem
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Mon, 23 Apr 2018 08:17:23 +0000 (11:17 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
The following commit:

44b460cfe554 ("drm: imx: remove struct imx_drm_crtc and
imx_drm_crtc_helper_funcs")

removed some functions from imx-drm-core. As a consequence,
the CRTC ports were not detected properly.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/drm/imx/dcss/dcss-crtc.c

index d5f04a5..d057c47 100644 (file)
@@ -305,6 +305,7 @@ static int dcss_crtc_init(struct dcss_crtc *crtc,
        if (IS_ERR(crtc->plane[0]))
                return PTR_ERR(crtc->plane[0]);
 
+       crtc->base.port = pdata->of_node;
        drm_crtc_helper_add(&crtc->base, &dcss_helper_funcs);
        ret = drm_crtc_init_with_planes(drm, &crtc->base, &crtc->plane[0]->base,
                                        NULL, &dcss_crtc_funcs, NULL);