mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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 <algea.cao@rock-chips.com> Change-Id: I9c6accd1b17488f4ad25b79681856c47fab29d20
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user