summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_all.c
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2002-09-23 04:56:35 +0000
committermjacob <mjacob@FreeBSD.org>2002-09-23 04:56:35 +0000
commita2fde432eb94f53f6aa26c5737326530eecab717 (patch)
tree6dde8861c56c287b28371ed0695568d5ecb298a7 /sys/cam/scsi/scsi_all.c
parent116b05642525fedde0a20242283c7e20e1a2bfaa (diff)
downloadFreeBSD-src-a2fde432eb94f53f6aa26c5737326530eecab717.zip
FreeBSD-src-a2fde432eb94f53f6aa26c5737326530eecab717.tar.gz
A SCSI_DELAY of zero is a legitimate value to have.
The notion that you must "always" have a delay is at best misinformed.
Diffstat (limited to 'sys/cam/scsi/scsi_all.c')
-rw-r--r--sys/cam/scsi/scsi_all.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index d512ede..1ebbb2c 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -72,7 +72,9 @@
#endif
/*
* All devices need _some_ sort of bus settle delay, so we'll set it to
- * a minimum value of 100ms.
+ * a minimum value of 100ms. Note that this is pertinent only for SPI-
+ * not transport like Fibre Channel or iSCSI where 'delay' is completely
+ * meaningless.
*/
#ifndef SCSI_MIN_DELAY
#define SCSI_MIN_DELAY 100
@@ -80,7 +82,7 @@
/*
* Make sure the user isn't using seconds instead of milliseconds.
*/
-#if (SCSI_DELAY < SCSI_MIN_DELAY)
+#if (SCSI_DELAY < SCSI_MIN_DELAY && SCSI_DELAY != 0)
#error "SCSI_DELAY is in milliseconds, not seconds! Please use a larger value"
#endif
OpenPOWER on IntegriCloud