drm/bridge: synopsys: dw-mipi-dsi: Fix hcomponent lbcc for burst mode
authorLiu Ying <victor.liu@nxp.com>
Wed, 18 Oct 2023 03:52:12 +0000 (11:52 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 24 Oct 2023 18:35:11 +0000 (20:35 +0200)
commit93e82bb4de0196c4caeca1d8a6eef67863981d8f
tree3153a6ece8cf54dd8b52e99e0e2ff9004e293950
parent6ae2ff23aa43a0c421cf315c34b105bdfe317f63
drm/bridge: synopsys: dw-mipi-dsi: Fix hcomponent lbcc for burst mode

In order to support burst mode, vendor drivers set lane_mbps higher than
bandwidth through DPI interface.  So, calculate horizontal component lane
byte clock cycle(lbcc) based on lane_mbps instead of pixel clock rate for
burst mode.

Fixes: ac87d23694f4 ("drm/bridge: synopsys: dw-mipi-dsi: Use pixel clock rate to calculate lbcc")
Reported-by: Heiko Stübner <heiko@sntech.de>
Closes: https://lore.kernel.org/linux-arm-kernel/5979575.UjTJXf6HLC@diego/T/#u
Tested-by: Heiko Stübner <heiko@sntech.de> # px30 minievb with xinpeng xpp055c272
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231018035212.1778767-1-victor.liu@nxp.com
drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c