aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlvin Lee <alvin.lee2@amd.com>2023-11-06 11:20:15 -0500
committerAlex Deucher <alexander.deucher@amd.com>2023-11-29 17:50:27 -0500
commit3c9ea68cb61bd7e5bd312c06a12adada74ff5805 (patch)
tree612600d67077a2477c66ec3d70ac3819d3a4381e
parent2cc14f52aeb78ce3f29677c2de1f06c0e91471ab (diff)
downloadlinux-xfs-3c9ea68cb61bd7e5bd312c06a12adada74ff5805.tar.gz
drm/amd/display: Include udelay when waiting for INBOX0 ACK
When waiting for the ACK for INBOX0 message, we have to ensure to include the udelay for proper wait time Cc: stable@vger.kernel.org # 6.1+ Reviewed-by: Samson Tam <samson.tam@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
index 22fc4ba96defd1..38360adc53d973 100644
--- a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
+++ b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
@@ -1077,6 +1077,7 @@ enum dmub_status dmub_srv_wait_for_inbox0_ack(struct dmub_srv *dmub, uint32_t ti
ack = dmub->hw_funcs.read_inbox0_ack_register(dmub);
if (ack)
return DMUB_STATUS_OK;
+ udelay(1);
}
return DMUB_STATUS_TIMEOUT;
}