drm/amd/display: Don't use fsleep for PSR exit waits on dmub replay
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 27 Sep 2023 19:06:41 +0000 (15:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:17:13 +0000 (16:17 -0400)
commitb5236da757adc75d7e52c69bdc233d29249a0d0c
treeb76a429261eb5037bc26dced7b90d95eeed12107
parent030631e97b209481edbac38000d2a60fd340f6b1
drm/amd/display: Don't use fsleep for PSR exit waits on dmub replay

[Why]
These functions can be called from high IRQ levels and the OS will hang
if it tries to use a usleep_highres or a msleep.

[How]
Replace the flseep with a udelay for dmub_replay_enable.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dmub_replay.c