Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: platform: mtk-mdp3: Add missing MT8188 compatible to comp_dt_ids

Commit 4a81656c8eaa ("arm64: dts: mediatek: mt8188: Address binding
warnings for MDP3 nodes") caused a regression on the MDP functionality
when it removed the MT8195 compatibles from the MDP3 nodes, since the
MT8188 compatible was not yet listed as a possible MDP component
compatible in mdp_comp_dt_ids. This resulted in an empty output
bitstream when using the MDP from userspace, as well as the following
errors:

mtk-mdp3 14001000.dma-controller: Uninit component inner id 4
mtk-mdp3 14001000.dma-controller: mdp_path_ctx_init error 0
mtk-mdp3 14001000.dma-controller: CMDQ sendtask failed: -22

Add the missing compatible to the array to restore functionality.

Fixes: 4a81656c8eaa ("arm64: dts: mediatek: mt8188: Address binding warnings for MDP3 nodes")
Cc: stable@vger.kernel.org
Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Nícolas F. R. A. Prado and committed by
Hans Verkuil
bbcc6d16 91c5d7c8

+3
+3
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c
··· 1530 1530 }, { 1531 1531 .compatible = "mediatek,mt8195-mdp3-tcc", 1532 1532 .data = (void *)MDP_COMP_TYPE_TCC, 1533 + }, { 1534 + .compatible = "mediatek,mt8188-mdp3-rdma", 1535 + .data = (void *)MDP_COMP_TYPE_RDMA, 1533 1536 }, 1534 1537 {} 1535 1538 };