drm/mediatek: mtk_dpi: Reorder output formats on MT8195/88
authorLouis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Fri, 6 Jun 2025 12:50:12 +0000 (14:50 +0200)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 17 Jul 2025 23:19:05 +0000 (23:19 +0000)
commit5ceed7a6d34a8800bc39673bf2d5573990fbac4d
tree2e26597612768f94d50833d5b1f0969ee41ab2e8
parent8d121a82fa564e0c8bd86ce4ec56b2a43b9b016e
drm/mediatek: mtk_dpi: Reorder output formats on MT8195/88

Reorder output format arrays in both MT8195 DPI and DP_INTF block
configuration by decreasing preference order instead of alphanumeric
one, as expected by the atomic_get_output_bus_fmts callback function
of drm_bridge controls, so the RGB ones are used first during the
bus format negotiation process.

Fixes: 20fa6a8fc588 ("drm/mediatek: mtk_dpi: Allow additional output formats on MT8195/88")
Signed-off-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20250606-mtk_dpi-mt8195-fix-wrong-color-v1-1-47988101b798@collabora.com/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c