]> Git Repo - linux.git/commitdiff
drm/mediatek: Handle component type MTK_DISP_OVL_2L correctly
authorPhong LE <[email protected]>
Wed, 19 Feb 2020 14:13:24 +0000 (15:13 +0100)
committerCK Hu <[email protected]>
Tue, 25 Feb 2020 05:02:22 +0000 (13:02 +0800)
The larb device remains NULL if the type is MTK_DISP_OVL_2L.
A kernel panic is raised when a crtc uses mtk_smi_larb_get or
mtk_smi_larb_put.

Fixes: b17bdd0d7a73 ("drm/mediatek: add component OVL_2L0")
Signed-off-by: Phong LE <[email protected]>
Signed-off-by: CK Hu <[email protected]>
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c

index 1f5a112bb034d76ed145f09863b003bd6cb31a4a..57c88de9a3293447e70965c6628258f7c9f31e05 100644 (file)
@@ -471,6 +471,7 @@ int mtk_ddp_comp_init(struct device *dev, struct device_node *node,
        /* Only DMA capable components need the LARB property */
        comp->larb_dev = NULL;
        if (type != MTK_DISP_OVL &&
+           type != MTK_DISP_OVL_2L &&
            type != MTK_DISP_RDMA &&
            type != MTK_DISP_WDMA)
                return 0;
This page took 0.05678 seconds and 4 git commands to generate.