From a2fde432eb94f53f6aa26c5737326530eecab717 Mon Sep 17 00:00:00 2001 From: mjacob Date: Mon, 23 Sep 2002 04:56:35 +0000 Subject: A SCSI_DELAY of zero is a legitimate value to have. The notion that you must "always" have a delay is at best misinformed. --- sys/cam/scsi/scsi_all.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/cam/scsi/scsi_all.c') 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 -- cgit v1.1