Skip to content

Commit 0ef8dd1

Browse files
cristiccvinodkoul
authored andcommitted
phy: rockchip: samsung-hdptx: Use usleep_range() instead of udelay()
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>
1 parent 41c6cac commit 0ef8dd1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ static void rk_hdptx_dp_reset(struct rk_hdptx_phy *hdptx)
10421042
reset_control_assert(hdptx->rsts[RST_INIT].rstc);
10431043

10441044
reset_control_assert(hdptx->rsts[RST_APB].rstc);
1045-
udelay(10);
1045+
usleep_range(10, 15);
10461046
reset_control_deassert(hdptx->rsts[RST_APB].rstc);
10471047

10481048
regmap_update_bits(hdptx->regmap, LANE_REG(0301),

0 commit comments

Comments
 (0)