]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu/display: adjust msleep limit in dp_wait_for_training_aux_rd_interval
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 20 Jan 2022 17:52:13 +0000 (12:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jan 2022 22:50:40 +0000 (17:50 -0500)
Some architectures (e.g., ARM) have relatively low udelay limits.
On most architectures, anything longer than 2000us is not recommended.
Change the check to align with other similar checks in DC.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c

index 05e216524370d4099211cdd9b4b571da7a410c94..a012899e9dd47900ce1ea9992f3ab768c5fdebb3 100644 (file)
@@ -202,7 +202,7 @@ void dp_wait_for_training_aux_rd_interval(
        uint32_t wait_in_micro_secs)
 {
 #if defined(CONFIG_DRM_AMD_DC_DCN)
-       if (wait_in_micro_secs > 16000)
+       if (wait_in_micro_secs > 1000)
                msleep(wait_in_micro_secs/1000);
        else
                udelay(wait_in_micro_secs);