drm/amd/display: Include udelay when waiting for INBOX0 ACK
authorjsg <jsg@openbsd.org>
Mon, 11 Dec 2023 05:04:45 +0000 (05:04 +0000)
committerjsg <jsg@openbsd.org>
Mon, 11 Dec 2023 05:04:45 +0000 (05:04 +0000)
From Alvin Lee
33ed892f0cdeb1350648cd3bfe8140aa9f792076 in linux-6.1.y/6.1.66
3c9ea68cb61bd7e5bd312c06a12adada74ff5805 in mainline linux

sys/dev/pci/drm/amd/display/dmub/src/dmub_srv.c

index c332787..f58803d 100644 (file)
@@ -964,6 +964,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;
 }