]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/bridge: tc358767: Use tc_pxl_pll_calc() to correct adjusted_mode clock
authorMarek Vasut <marex@denx.de>
Tue, 25 Jun 2024 12:02:31 +0000 (14:02 +0200)
committerRobert Foss <rfoss@kernel.org>
Thu, 27 Jun 2024 09:07:07 +0000 (11:07 +0200)
commita723d434009e8b8ac0bcbb322188061a94de1000
tree51555eb6d9ac80dae8dff2e0535a2e0153ed36f5
parent84708c2d180c32e216bf753f6627f00c03297bea
drm/bridge: tc358767: Use tc_pxl_pll_calc() to correct adjusted_mode clock

Use tc_pxl_pll_calc() to find out the exact clock frequency generated by the
Pixel PLL. Use the Pixel PLL frequency as adjusted_mode clock frequency and
pass it down the display pipeline to obtain exactly this frequency on input
into this bridge.

The precise input frequency that matches the Pixel PLL frequency is
important for this bridge, as if the frequencies do not match, the
bridge does suffer VFIFO overruns or underruns.

Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Marek Vasut <marex@denx.de>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240625120334.145320-2-marex@denx.de
drivers/gpu/drm/bridge/tc358767.c