drm/amd/display: Don't use fsleep for PSR exit waits
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Wed, 27 Sep 2023 19:06:41 +0000 (15:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Oct 2023 20:58:55 +0000 (16:58 -0400)
commit79df45dc4bfb13d9bd3a75338b9d9dab948be3d6
tree9e7aa1fbdec18e805326d42ecbd3f34cc89a415b
parentddd5298c63e45c51cff2cbea156d428329e8e607
drm/amd/display: Don't use fsleep for PSR exit waits

[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 fsleep with a udelay.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@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/dce_dmcu.c
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c