]> git.baikalelectronics.ru Git - kernel.git/commit
drm/mediatek: mtk-dpi: Set out_fmt from config if not the last bridge
authorHsin-Yi Wang <hsinyi@chromium.org>
Mon, 12 Jul 2021 09:46:57 +0000 (17:46 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 22 Jul 2021 14:44:42 +0000 (22:44 +0800)
commitd1f232b31a7eeefb9ed18916bc873087cbd0ddfe
tree850c883e4365b80ddee3c968732354bf2e1dc958
parent3c717f1ff741c4cf4b835c75180e73257fad92c2
drm/mediatek: mtk-dpi: Set out_fmt from config if not the last bridge

atomic_get_output_bus_fmts() is only called when the bridge is the last
element in the bridge chain.

If mtk-dpi is not the last bridge, the format of output_bus_cfg is
MEDIA_BUS_FMT_FIXED, and mtk_dpi_dual_edge() will fail to write correct
value to regs.

Fixes: 538c77852797 ("drm/mediatek: dpi: Add bus format negotiation")
Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dpi.c