summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJim Rees <rees@cvs.openbsd.org>1997-04-07 22:48:09 +0000
committerJim Rees <rees@cvs.openbsd.org>1997-04-07 22:48:09 +0000
commitaa54496b6eb925d6931d1d97b0c2f5088521d69e (patch)
treee90ed00506995c72c2a66ed407d77c504a6de622 /sys/dev
parentc47efdd011daf84eac45eec138e08a03e52e041a (diff)
cf_flags & 0x20 forces device to be found even if it won't probe.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isa/fd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/isa/fd.c b/sys/dev/isa/fd.c
index cd59a043758..adff6a5703d 100644
--- a/sys/dev/isa/fd.c
+++ b/sys/dev/isa/fd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fd.c,v 1.33 1996/12/05 17:40:01 deraadt Exp $ */
+/* $OpenBSD: fd.c,v 1.34 1997/04/07 22:48:08 rees Exp $ */
/* $NetBSD: fd.c,v 1.90 1996/05/12 23:12:03 mycroft Exp $ */
/*-
@@ -204,7 +204,8 @@ fdprobe(parent, match, aux)
printf("\n");
}
#endif
- if (n != 2 || (fdc->sc_status[0] & 0xf8) != 0x20)
+ /* flags & 0x20 forces the drive to be found even if it won't probe */
+ if (!(fa->fa_flags & 0x20) && (n != 2 || (fdc->sc_status[0] & 0xf8) != 0x20))
return 0;
/* turn off motor */
bus_space_write_1(iot, ioh, fdout, FDO_FRST);