summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-07-14 00:25:04 -0400
committerIan Moffett <ian@osmora.org>2024-07-14 00:25:04 -0400
commit320f1c6a451548b939483d8956111438238c6515 (patch)
treeefc6c5c9b0916fbdb6dee8f6a7121a3c7271650d /sys
parent8618573a496fb0c290b40e4c09865deee30f3cc4 (diff)
kernel: nvme: Sleep before status check
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/nvme.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index a9cbd2b..f3a16ce 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -279,6 +279,8 @@ nvme_poll_submit_cmd(struct nvme_queue *q, struct nvme_cmd cmd)
nvme_submit_cmd(q, cmd);
for (;;) {
+ tmr.msleep(100);
+
/*
* If the phase bit matches the most recently submitted
* command then the command has completed
@@ -294,7 +296,6 @@ nvme_poll_submit_cmd(struct nvme_queue *q, struct nvme_cmd cmd)
return -ETIME;
}
- tmr.msleep(150);
++spins;
}