summaryrefslogtreecommitdiff
path: root/sys/scsi/scsiconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/scsi/scsiconf.c')
-rw-r--r--sys/scsi/scsiconf.c11
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. */