Skip to content

HACK: drm/mediatek: stub missing ddp components to match table

With patch [1], we added several new types to mtk_ddp_comp_id enum.

Because of this type addition, some components such as DDP_COMPONENT_OVL0 now have wrong indexes in the mtk_ddp_matches table.

This results in mtk_ddp_com_get_id() returning wrong component IDs for a requested type. For example: mtk_ddp_comp_get_id(..., MTK_DISP_OVL) returns DDP_COMPONENT_DP_INTF0 instead of returning DDP_COMPONENT_OVL0.

Add the new types to the matching table to fix the id <-> component table logic.

Note that this is just to restore display support for i350-evk, which got broken.

We should revert this once we have proper display support for mt8195.

In the end, applying the following patches from the mailing list should bring the same effect:

[1] https://patchwork.kernel.org/project/linux-mediatek/patch/20211129184439.16892-9-jason-jh.lin@mediatek.com/

Signed-off-by: Mattijs Korpershoek mkorpershoek@baylibre.com

Merge request reports

Loading