summaryrefslogtreecommitdiff
path: root/drivers/phy
diff options
context:
space:
mode:
authorLiu Ying <victor.liu@nxp.com>2017-07-18 14:59:33 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit6b9934dba905ddee46c87819f1ae4105e05c4e87 (patch)
tree55bd65bc6a1a15093963f50078bd987e9b7dd02d /drivers/phy
parentd54ffa27a643f736f37600fdffb05787d53e82ee (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')
-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;
}