phy: mediatek: hdmi: mt8195: fix prediv bad upper limit test
authorGuillaume Ranquet <granquet@baylibre.com>
Tue, 30 May 2023 08:43:07 +0000 (10:43 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 12 Jul 2023 16:57:02 +0000 (22:27 +0530)
commit95bd315f0a5ed7d7afe771776272c5b3cdb29bc8
treedadce110f7e6daeba6b3cdb751af30e8aa2d26fc
parent5782017cc4d0c8f3425d55b893675bb8a20c33e9
phy: mediatek: hdmi: mt8195: fix prediv bad upper limit test

The pll prediv calculus searchs for the smallest prediv that gets
the ns_hdmipll_ck in the range of 5 GHz to 12 GHz.

A typo in the upper bound test was testing for 5Ghz to 1Ghz

Fixes: 45810d486bb44 ("phy: mediatek: add support for phy-mtk-hdmi-mt8195")
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230529-hdmi_phy_fix-v1-1-bf65f53af533@baylibre.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c