提交 3d2ed431 编写于 作者: P Phong LE 提交者: CK Hu

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: b17bdd0d ("drm/mediatek: add component OVL_2L0")
Signed-off-by: NPhong LE <ple@baylibre.com>
Signed-off-by: NCK Hu <ck.hu@mediatek.com>
上级 839cbf05
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册