summaryrefslogtreecommitdiffstats
path: root/sys/scsi/scsi_base.c
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1995-10-09 15:15:01 +0000
committerjoerg <joerg@FreeBSD.org>1995-10-09 15:15:01 +0000
commitbe110e87c8873066ed715a2b47fc226a507834fa (patch)
tree528f0d8ee4f1a3c9edf2330d9de3a1a175ba1e7d /sys/scsi/scsi_base.c
parentd14a472e3c19071941d1325fe53e559d5afffae3 (diff)
downloadFreeBSD-src-be110e87c8873066ed715a2b47fc226a507834fa.zip
FreeBSD-src-be110e87c8873066ed715a2b47fc226a507834fa.tar.gz
Some bug fixes for the worm driver:
o don't use polled mode after the device probe phase o don't biodone() a NULL buffer pointer o increase the timeout for scsi_read_capacity(); WORMs are slooow o make WORMMs known to scsiconf at all This brings the driver in a state where it at least doesn't immediately panic, nor hangs the controller any more. Unfortunately, at least the YAMAHA CDR100 i've been testing with answered my write attempts with an "Incorrect command sequence" response. Perhaps other CD burners might work however. Reviewed by: dufault
Diffstat (limited to 'sys/scsi/scsi_base.c')
-rw-r--r--sys/scsi/scsi_base.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index 9217aac..665184a 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -8,7 +8,7 @@
* file.
*
* Written by Julian Elischer (julian@dialix.oz.au)
- * $Id: scsi_base.c,v 1.29 1995/05/30 08:13:27 rgrimes Exp $
+ * $Id: scsi_base.c,v 1.30 1995/07/25 22:09:06 bde Exp $
*/
#define SPLSD splbio
@@ -143,8 +143,8 @@ scsi_read_capacity(sc_link, blk_size, flags)
sizeof(scsi_cmd),
(u_char *) & rdcap,
sizeof(rdcap),
- 2,
- 20000,
+ 4,
+ 5000000, /* WORMs tend to take a HUGE amount of time */
NULL,
flags | SCSI_DATA_IN) != 0) {
OpenPOWER on IntegriCloud