From: Alvin Lee <[email protected]>

When waiting for the ACK for INBOX0 message,
we have to ensure to include the udelay
for proper wait time

Cc: [email protected] # 6.1+
Reviewed-by: Samson Tam <[email protected]>
Acked-by: Hamza Mahfooz <[email protected]>
Signed-off-by: Alvin Lee <[email protected]>
---
 drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 1 +
 1 file changed, 1 insertion(+)

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 22fc4ba96def..38360adc53d9 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;
 }
-- 
2.42.0

Reply via email to