phy: mediatek: hdmi: mt8195: fix prediv bad upper limit test
Subsystems (4)
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
--- 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
@@ -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
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_ckin 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 <[email protected]>
Quoted 6 lines · Guillaume Ranquet
The pll prediv calculus searchs for the smallest prediv that gets the
ns_hdmipll_ckin 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