summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_base.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2003-05-16 19:54:06 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2003-05-16 19:54:06 +0000
commitaf98e47ac496ec0d5f53f22a08c6ed052b86265e (patch)
tree32f0ce07e296f8617c84ebda6b19dd53abc3f052 /sys/scsi/scsi_base.c
parent9db59f70e24b22031be7af711fcdf5b881ff174a (diff)
Provide most if not all the support required for the usb changes Nate
is trying to bring in. 1) Change name of SDEV_NOCDB6 to SDEV_ONLYBIG to align it with the same quirk in NetBSD, and make it more clear what it is trying to do. i.e. force the use of READ_BIG/WRITE_BIG commands, not suppress all use of 6 byte CDB's. 2) Check SDEV_ONLYBIG in cd.c as well as sd.c. i.e. both places where a choice is made to use the 6 or 10 byte versions of READ/WRITE. 3) Actually make use of the ADEV_NOTUR (No TEST UNIT READY) quirk to suppress the emission of TEST UNIT READY commands. 4) Add some explanatory comments from NetBSD to scsiconf.h so that the use of the quirks is made clear. ok miod@ tdeval@ nate@
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r--sys/scsi/scsi_base.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 370cbac2d0e..d934526eeaf 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.41 2003/05/03 02:20:32 krw Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.42 2003/05/16 19:54:05 krw Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -254,6 +254,9 @@ scsi_test_unit_ready(sc_link, retries, flags)
{
struct scsi_test_unit_ready scsi_cmd;
+ if (sc_link->quirks & ADEV_NOTUR)
+ return 0;
+
bzero(&scsi_cmd, sizeof(scsi_cmd));
scsi_cmd.opcode = TEST_UNIT_READY;