Skip to content

Commit 3d2ed43

Browse files
phong-baylibreckhu-mediatek
authored andcommitted
drm/mediatek: Handle component type MTK_DISP_OVL_2L correctly
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: b17bdd0 ("drm/mediatek: add component OVL_2L0") Signed-off-by: Phong LE <[email protected]> Signed-off-by: CK Hu <[email protected]>
1 parent 839cbf0 commit 3d2ed43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ int mtk_ddp_comp_init(struct device *dev, struct device_node *node,
471471
/* Only DMA capable components need the LARB property */
472472
comp->larb_dev = NULL;
473473
if (type != MTK_DISP_OVL &&
474+
type != MTK_DISP_OVL_2L &&
474475
type != MTK_DISP_RDMA &&
475476
type != MTK_DISP_WDMA)
476477
return 0;

0 commit comments

Comments
 (0)