From 6778948f9de86c3cfaf36725a7c87dcff9ba247f Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Mon, 11 Dec 2023 08:20:59 +0000
Subject: [PATCH] kernel_5.10 no rt
---
u-boot/drivers/phy/phy-rockchip-samsung-hdptx.c | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/u-boot/drivers/phy/phy-rockchip-samsung-hdptx.c b/u-boot/drivers/phy/phy-rockchip-samsung-hdptx.c
index 4044db6..bc718d0 100644
--- a/u-boot/drivers/phy/phy-rockchip-samsung-hdptx.c
+++ b/u-boot/drivers/phy/phy-rockchip-samsung-hdptx.c
@@ -592,9 +592,21 @@
struct phy_configure_opts_dp *dp)
{
u8 lane;
+ u32 status;
+ int ret;
for (lane = 0; lane < dp->lanes; lane++)
rockchip_hdptx_phy_set_voltage(hdptx, dp, lane);
+
+ reset_deassert(&hdptx->lane_reset);
+
+ ret = regmap_read_poll_timeout(hdptx->grf, HDPTXPHY_GRF_STATUS0,
+ status, FIELD_GET(PHY_RDY, status),
+ 50, 5000);
+ if (ret) {
+ dev_err(hdptx->dev, "timeout waiting for phy_rdy\n");
+ return ret;
+ }
return 0;
}
@@ -676,17 +688,6 @@
regmap_update_bits(hdptx->regmap, 0x081c, LANE_EN,
FIELD_PREP(LANE_EN, GENMASK(dp->lanes - 1, 0)));
-
- reset_deassert(&hdptx->lane_reset);
- udelay(10);
-
- ret = regmap_read_poll_timeout(hdptx->grf, HDPTXPHY_GRF_STATUS0,
- status, FIELD_GET(PHY_RDY, status),
- 50, 1000);
- if (ret) {
- dev_err(hdptx->dev, "timeout waiting for phy_rdy\n");
- return ret;
- }
return 0;
}
--
Gitblit v1.6.2