diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-01-24 22:01:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2004-01-24 22:01:47 +0000 |
commit | 5921d91b9ea4b98b0cbd64ddf3357f9d3bfa6b1c (patch) | |
tree | 341c301b3e72ba282ca86b2505dcbeb317179388 /sys/scsi | |
parent | 86b096259c0fbe73017ef1569c4dffa69f7b4595 (diff) |
ugly #ifdef to be deleted later
must still do TUR on mvme68k & mvme88k ssh(4) driver
ok miod krw
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/scsiconf.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/scsi/scsiconf.c b/sys/scsi/scsiconf.c index 9d1f067cd91..936a2f02091 100644 --- a/sys/scsi/scsiconf.c +++ b/sys/scsi/scsiconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scsiconf.c,v 1.79 2004/01/23 02:44:21 krw Exp $ */ +/* $OpenBSD: scsiconf.c,v 1.80 2004/01/24 22:01:46 deraadt Exp $ */ /* $NetBSD: scsiconf.c,v 1.57 1996/05/02 01:09:01 neil Exp $ */ /* @@ -655,6 +655,15 @@ scsi_probedev(scsi, inqbuflun0, target, lun) sc_link->flags |= scsidebug_level; #endif /* SCSIDEBUG */ +#if defined(mvme68k) || defined(mvme88k) + if (lun == 0) { + /* XXX some drivers depend on this */ + scsi_test_unit_ready(sc_link, TEST_READY_RETRIES_DEFAULT, + scsi_autoconf | SCSI_IGNORE_ILLEGAL_REQUEST | + SCSI_IGNORE_NOT_READY | SCSI_IGNORE_MEDIA_CHANGE); + } +#endif + #ifdef SCSI_2_DEF /* Some devices need to be told to go to SCSI2. */ /* However some just explode if you tell them this... leave it out. */ |