From 5b68b2315775c61922c84ec1512febfe5fda8a2f Mon Sep 17 00:00:00 2001 From: Algea Cao Date: Mon, 28 Feb 2022 14:35:56 +0800 Subject: [PATCH] phy: rockchip-samsung-hdptx-hdmi: Use udelay instead of usleep in clk enable usleep shouldn't be used in an atomic context. Signed-off-by: Algea Cao Change-Id: I9c6accd1b17488f4ad25b79681856c47fab29d20 --- drivers/phy/rockchip/phy-rockchip-samsung-hdptx-hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx-hdmi.c b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx-hdmi.c index 7071ecb8bdfe..ec343532d059 100644 --- a/drivers/phy/rockchip/phy-rockchip-samsung-hdptx-hdmi.c +++ b/drivers/phy/rockchip/phy-rockchip-samsung-hdptx-hdmi.c @@ -895,7 +895,7 @@ static void hdptx_pre_power_up(struct rockchip_hdptx_phy *hdptx) int ret; reset_control_assert(hdptx->apb_reset); - usleep_range(10, 20); + udelay(20); reset_control_deassert(hdptx->apb_reset); reset_control_assert(hdptx->lane_reset); @@ -1130,7 +1130,7 @@ static int hdptx_ropll_cmn_config(struct rockchip_hdptx_phy *hdptx, unsigned lon hdptx_pre_power_up(hdptx); reset_control_assert(hdptx->ropll_reset); - usleep_range(10, 20); + udelay(20); reset_control_deassert(hdptx->ropll_reset); hdptx_write(hdptx, CMN_REG0008, 0x00);