From: Alex Deucher Date: Tue, 25 Jun 2019 13:54:21 +0000 (-0500) Subject: drm/amdgpu/display: switch udelay to msleep X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=3e10f3196b55f3ed41a2727e9720c19e5ff1078f;p=openwrt%2Fstaging%2Fblogic.git drm/amdgpu/display: switch udelay to msleep We may need to sleep for up to 80ms (8ms per each of up to 10 loop iterations): /* First DPCD read after VDD ON can fail if the particular board * does not have HPD pin wired correctly. So if DPCD read fails, * which it should never happen, retry a few times. Target worst * case scenario of 80 ms. */ Switch udelay to msleep to avoid limits on arm. Reviewed-by: Nicholas Kazlauskas Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c index d6f8be654c2e..c17db5c144aa 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -550,7 +550,7 @@ static void read_edp_current_link_settings_on_detect(struct dc_link *link) break; } - udelay(8000); + msleep(8); } ASSERT(status == DC_OK);