MLK-16581-1 phy: mixel-lvds: Get PHY clock rate before setting it's rate
authorLiu Ying <victor.liu@nxp.com>
Fri, 13 Oct 2017 03:37:18 +0000 (11:37 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit8a5f2be5f6a13ebbced6de71e5134856a00e40dc
treea547bc11fbd71f1949a5b9f1b84996879441f3ed
parentc0f6f503af56155e04056142df5e1fd978b48dc3
MLK-16581-1 phy: mixel-lvds: 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: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit f9709fbf36495c7139ac55a0ecc01b30303b427b)
drivers/phy/phy-mixel-lvds.c