Skip to content

Commit 98fdcac

Browse files
committed
drm/amdgpu/display: use msleep rather than udelay for long delays
Some architectures (e.g., ARM) throw an compilation error if the udelay is too long. In general udelays of longer than 2000us are not recommended on any architecture. Switch to msleep in these cases. Reviewed-by: Harry Wentland <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent dc919d6 commit 98fdcac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6935,7 +6935,7 @@ bool dpcd_write_128b_132b_sst_payload_allocation_table(
69356935
}
69366936
}
69376937
retries++;
6938-
udelay(5000);
6938+
msleep(5);
69396939
}
69406940

69416941
if (!result && retries == max_retries) {
@@ -6987,7 +6987,7 @@ bool dpcd_poll_for_allocation_change_trigger(struct dc_link *link)
69876987
break;
69886988
}
69896989

6990-
udelay(5000);
6990+
msleep(5);
69916991
}
69926992

69936993
if (result == ACT_FAILED) {

0 commit comments

Comments
 (0)