summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-04-13 13:09:37 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-04-13 13:09:37 +0000
commitf290f8f7ec910e6ee096d6d0d087b3b784f0252e (patch)
tree7df27b57ad32f76ee30786a12d3229c767d3841f /sys/dev/ic
parentcf25a71629cad47b2bc2e9558a7c062647a5651d (diff)
stub out handling of TEST_UNIT_READY, PREVENT_ALLOW, and START_STOP
at the moment this just pretends the commands completed fine.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/nvme.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index a8ef3559af2..566ef386261 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvme.c,v 1.28 2016/04/13 13:05:10 dlg Exp $ */
+/* $OpenBSD: nvme.c,v 1.29 2016/04/13 13:09:36 dlg Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
@@ -425,6 +425,13 @@ nvme_scsi_cmd(struct scsi_xfer *xs)
nvme_scsi_capacity(xs);
return;
+ case TEST_UNIT_READY:
+ case PREVENT_ALLOW:
+ case START_STOP:
+ xs->error = XS_NOERROR;
+ scsi_done(xs);
+ return;
+
default:
break;
}