summaryrefslogtreecommitdiff
path: root/drivers/phy/phy-mixel-lvds-combo.c
diff options
context:
space:
mode:
authorLiu Ying <victor.liu@nxp.com>2017-07-18 14:59:33 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:27:30 +0800
commitd9e4050637d2a0496498de6cfef480729744ae9f (patch)
tree71a13b5e49aea30259f50b21bed7d3a7fd19e35e /drivers/phy/phy-mixel-lvds-combo.c
parent0d2191ab2b7cc90f3d7f7988f1599d9291e32d07 (diff)
MLK-16015-2 phy: mixel-lvds-combo: Add delay to wait PHY to be locked
It seems that we haven't got SCU ISO bit available to check if PHY is locked or not after enable, so let's simply delay for a while as a temporary solution. Signed-off-by: Liu Ying <victor.liu@nxp.com>
Diffstat (limited to 'drivers/phy/phy-mixel-lvds-combo.c')
-rw-r--r--drivers/phy/phy-mixel-lvds-combo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/phy/phy-mixel-lvds-combo.c b/drivers/phy/phy-mixel-lvds-combo.c
index 0005cf2f6a50..9d3d46987290 100644
--- a/drivers/phy/phy-mixel-lvds-combo.c
+++ b/drivers/phy/phy-mixel-lvds-combo.c
@@ -13,6 +13,7 @@
*/
#include <linux/clk.h>
+#include <linux/delay.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
@@ -174,6 +175,8 @@ static int mixel_lvds_combo_phy_power_on(struct phy *phy)
phy_csr_write(phy, val, PHY_CTRL);
mutex_unlock(&lvds_phy->lock);
+ usleep_range(500, 1000);
+
return 0;
}