summaryrefslogtreecommitdiff
path: root/sys/dev/ic/nvme.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/nvme.c')
-rw-r--r--sys/dev/ic/nvme.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index 749ac93..822b085 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -425,7 +425,7 @@ nvme_dev_rw(dev_t dev, struct sio_txn *sio, bool write)
*/
ns = nvme_get_ns(dev);
if (__unlikely(ns == NULL))
- return -EIO;
+ return -ENODEV;
/* Calculate the block count and offset */
block_count = ALIGN_UP(sio->len, ns->lba_bsize);
@@ -625,6 +625,10 @@ nvme_init(void)
return -ENODEV;
}
+ pr_trace("NVMe storage ctrl <hba? at pci%d:%x.%x.%d>\n",
+ nvme_dev->bus, nvme_dev->device_id, nvme_dev->func,
+ nvme_dev->slot);
+
/* Try to request a general purpose timer */
if (req_timer(TIMER_GP, &tmr) != TMRR_SUCCESS) {
pr_error("failed to fetch general purpose timer\n");
@@ -658,4 +662,4 @@ static struct bdevsw nvme_bdevsw = {
.write = nowrite
};
-DRIVER_EXPORT(nvme_init);
+DRIVER_DEFER(nvme_init);