]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
phy: rockchip: samsung-hdptx: Use usleep_range() instead of udelay()
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Mon, 12 Jan 2026 23:20:49 +0000 (01:20 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 21 Jan 2026 08:41:57 +0000 (14:11 +0530)
rk_hdptx_dp_reset() is allowed to sleep, hence replace the busy waiting
with usleep_range(), to allow other threads to run.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patch.msgid.link/20260113-phy-hdptx-frl-v6-2-8d5f97419c0b@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c

index a65e966942374d202dc424c5ddb38115ba19f25a..89710066d70c8421c2da2416529ce0082b92e571 100644 (file)
@@ -1042,7 +1042,7 @@ static void rk_hdptx_dp_reset(struct rk_hdptx_phy *hdptx)
        reset_control_assert(hdptx->rsts[RST_INIT].rstc);
 
        reset_control_assert(hdptx->rsts[RST_APB].rstc);
-       udelay(10);
+       usleep_range(10, 15);
        reset_control_deassert(hdptx->rsts[RST_APB].rstc);
 
        regmap_update_bits(hdptx->regmap, LANE_REG(0301),