Skip to contentSkip to conversation

phy: mediatek: hdmi: mt8195: fix prediv bad upper limit test

PATCH Applied Guillaume Ranquet 3 participants 3 messages May 30, 2023 – Jul 11, 2023

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c +1 -1
index 8aa7251de4a9..bbfe11d6a69d 100644
@@ -253,7 +253,7 @@ static int mtk_hdmi_pll_calc(struct mtk_hdmi_phy *hdmi_phy, struct clk_hw *hw,
 	for (i = 0; i < ARRAY_SIZE(txpredivs); i++) {
 		ns_hdmipll_ck = 5 * tmds_clk * txposdiv * txpredivs[i];
 		if (ns_hdmipll_ck >= 5 * GIGA &&
-		    ns_hdmipll_ck <= 1 * GIGA)
+		    ns_hdmipll_ck <= 12 * GIGA)
 			break;
 	}
 	if (i == (ARRAY_SIZE(txpredivs) - 1) &&

---
base-commit: 9f925874281f7e8855855d6210d6e29d844e4307
change-id: 20230529-hdmi_phy_fix-9dab6eb42ef7

Best regards,

Signature · 7 lines
Guillaume Ranquet <[email protected]>


-- 
linux-phy mailing list
[email protected]
https://lists.infradead.org/mailman/listinfo/linux-phy
maintainer Reviewed-by on v1 1/1
#1 lore raw

Il 30/05/23 10:43, Guillaume Ranquet ha scritto:

Quoted 7 lines

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")
maintainer Applied
#2 lore raw
In reply to Guillaume Ranquet
Quoted 6 lines · Guillaume Ranquet

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

Applied, thanks!

[1/1] phy: mediatek: hdmi: mt8195: fix prediv bad upper limit test

      commit: 059c78ebf1e94a825e27cc3ef8a9d77cef06827e

Best regards,

Signature · 1 line
~Vinod