Skip to content

Commit 1749267

Browse files
Andy Yanmmind
authored andcommitted
drm/rockchip: inno_hdmi: Use sleep_range instead of udelay
usleep_range is preferred over udelay. Signed-off-by: Andy Yan <andy.yan@rock-chips.com> Signed-off-by: Heiko Stuebner <heiko@sntech.de> Link: https://lore.kernel.org/r/20250512124615.2848731-7-andyshrk@163.com
1 parent 52ac749 commit 1749267

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/gpu/drm/rockchip/inno_hdmi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,10 @@ static void inno_hdmi_init_hw(struct inno_hdmi *hdmi)
610610
u32 msk;
611611

612612
hdmi_modb(hdmi, HDMI_SYS_CTRL, m_RST_DIGITAL, v_NOT_RST_DIGITAL);
613-
udelay(100);
613+
usleep_range(100, 150);
614614

615615
hdmi_modb(hdmi, HDMI_SYS_CTRL, m_RST_ANALOG, v_NOT_RST_ANALOG);
616-
udelay(100);
616+
usleep_range(100, 150);
617617

618618
msk = m_REG_CLK_INV | m_REG_CLK_SOURCE | m_POWER | m_INT_POL;
619619
val = v_REG_CLK_INV | v_REG_CLK_SOURCE_SYS | v_PWR_ON | v_INT_POL_HIGH;

0 commit comments

Comments
 (0)