Skip to content
Snippets Groups Projects
Commit fca3d4b1 authored by Liu Ying's avatar Liu Ying Committed by Jason Liu
Browse files

MLK-16581-2 phy: mixel-lvds-combo: Get PHY clock rate before setting it's rate


Due to i.MX8 clock issue, we need to get PHY clock rate
before setting it's rate when system resumes back from
PM sleep mode, otherwise, we'll fail to set the clock rate.
So, this is a workaround and it can be removed when
the clock issue is properly fixed.

Signed-off-by: default avatarLiu Ying <victor.liu@nxp.com>
parent f9709fbf
No related branches found
No related tags found
No related merge requests found
...@@ -96,6 +96,13 @@ void mixel_phy_combo_lvds_set_phy_speed(struct phy *phy, ...@@ -96,6 +96,13 @@ void mixel_phy_combo_lvds_set_phy_speed(struct phy *phy,
{ {
struct mixel_lvds_phy *lvds_phy = phy_get_drvdata(phy); struct mixel_lvds_phy *lvds_phy = phy_get_drvdata(phy);
/*
* To workaround setting clock rate failure issue
* when the system resumes back from PM sleep mode,
* we need to get the clock rate before setting it's
* rate, otherwise, setting the clock rate will fail.
*/
clk_get_rate(lvds_phy->phy_clk);
clk_set_rate(lvds_phy->phy_clk, phy_clk_rate); clk_set_rate(lvds_phy->phy_clk, phy_clk_rate);
} }
EXPORT_SYMBOL_GPL(mixel_phy_combo_lvds_set_phy_speed); EXPORT_SYMBOL_GPL(mixel_phy_combo_lvds_set_phy_speed);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment