OSDN Git Service

drm/rockchip: dw_hdmi: relax mode_valid hook
authorSascha Hauer <s.hauer@pengutronix.de>
Thu, 16 Feb 2023 10:24:45 +0000 (11:24 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 9 Mar 2023 00:14:25 +0000 (01:14 +0100)
commitde13db32b0f89a040b50a51d129b9443159a660a
treeb85b8badef0277942c82cb9fb29ff0296b533cf2
parent8e140cb60270ee8b5b41e80806323c668d8d4da9
drm/rockchip: dw_hdmi: relax mode_valid hook

The driver checks if the pixel clock of the given mode matches an entry
in the mpll config table. At least for the Synopsys phy the frequencies
in the mpll table are meant as a frequency range up to which the entry
works, not as a frequency that must match the pixel clock. Return
MODE_OK when the pixelclock is smaller than one of the mpll frequencies
to allow for more display resolutions.
Limit this behaviour to the Synopsys phy at the moment and keep the
current behaviour of forcing exact pixelclock rates for the other phys
until it has been sorted out how and if the vendor specific phys work
with non standard clock rates.

Tested-by: Michael Riesch <michael.riesch@wolfvision.net>
Link: https://lore.kernel.org/r/20220926080435.259617-2-s.hauer@pengutronix.de
Tested-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com>
Tested-by: Dan Johansen <strit@manjaro.org>
Link: https://lore.kernel.org/r/20230118132213.2911418-2-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230216102447.582905-3-s.hauer@pengutronix.de
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c