drm/bridge: synopsys: dw-mipi-dsi: Add mode fixup support
authorLiu Ying <victor.liu@nxp.com>
Mon, 21 Aug 2023 03:40:03 +0000 (11:40 +0800)
committerRobert Foss <rfoss@kernel.org>
Mon, 16 Oct 2023 09:38:42 +0000 (11:38 +0200)
commit5a67ec8c64ec88b5c34060b347ccec4a31af3369
tree7b0b9a3e9d198ba0676e8d9b4f75450f98b978f2
parentd5116fb29dc09bd4b9d9175f4f571e6eac539c93
drm/bridge: synopsys: dw-mipi-dsi: Add mode fixup support

Vendor drivers may need to fixup mode due to pixel clock tree limitation,
so introduce the ->mode_fixup() callcack to struct dw_mipi_dsi_plat_data
and call it at atomic check stage if available.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230821034008.3876938-5-victor.liu@nxp.com
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c
include/drm/bridge/dw_mipi_dsi.h