]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
media: platform: mtk-mdp3: Add missing MT8188 compatible to comp_dt_ids
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Fri, 6 Jun 2025 13:14:22 +0000 (09:14 -0400)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 4 Sep 2025 08:14:02 +0000 (10:14 +0200)
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>
drivers/media/platform/mediatek/mdp3/mtk-mdp3-comp.c

index 683c066ed97586a187f7d30191ba0f6c99c83371..7fcb2fbdd64eea18ca0c7e4600bb1f601cf8725e 100644 (file)
@@ -1530,6 +1530,9 @@ static const struct of_device_id mdp_comp_dt_ids[] __maybe_unused = {
        }, {
                .compatible = "mediatek,mt8195-mdp3-tcc",
                .data = (void *)MDP_COMP_TYPE_TCC,
+       }, {
+               .compatible = "mediatek,mt8188-mdp3-rdma",
+               .data = (void *)MDP_COMP_TYPE_RDMA,
        },
        {}
 };