Skip to content

Commit 95bd315

Browse files
granquetvinodkoul
authored andcommitted
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: 45810d4 ("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>
1 parent 5782017 commit 95bd315

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ static int mtk_hdmi_pll_calc(struct mtk_hdmi_phy *hdmi_phy, struct clk_hw *hw,
253253
for (i = 0; i < ARRAY_SIZE(txpredivs); i++) {
254254
ns_hdmipll_ck = 5 * tmds_clk * txposdiv * txpredivs[i];
255255
if (ns_hdmipll_ck >= 5 * GIGA &&
256-
ns_hdmipll_ck <= 1 * GIGA)
256+
ns_hdmipll_ck <= 12 * GIGA)
257257
break;
258258
}
259259
if (i == (ARRAY_SIZE(txpredivs) - 1) &&

0 commit comments

Comments
 (0)