summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2002-01-12 05:36:10 +0000
committerJason Wright <jason@cvs.openbsd.org>2002-01-12 05:36:10 +0000
commit0ccf7f4567d5a522fe4879cf0287efeaa1a9465b (patch)
tree0a0f0b773084e06bc8ae2a83f1b941e7d8a2d10d /sys/dev
parent0593b63b726fbebaf5fc2859e40ab46942d3b47b (diff)
Don't try UDMA modes if they aren't supported by the controller
even if the flags enable it. chris@ ok
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/wdc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c
index 60433f016f4..a26d906990d 100644
--- a/sys/dev/ic/wdc.c
+++ b/sys/dev/ic/wdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wdc.c,v 1.44 2002/01/07 19:04:46 mickey Exp $ */
+/* $OpenBSD: wdc.c,v 1.45 2002/01/12 05:36:09 jason Exp $ */
/* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */
@@ -1245,6 +1245,10 @@ wdc_probe_caps(drvp, params)
drvp->drive_flags |= DRIVE_DMA | DRIVE_MODE;
}
}
+ if ((wdc->cap & WDC_CAPABILITY_UDMA) == 0) {
+ /* don't care about UDMA modes */
+ return;
+ }
if (cf_flags & ATA_CONFIG_UDMA_SET) {
if ((cf_flags & ATA_CONFIG_UDMA_MODES) ==
ATA_CONFIG_UDMA_DISABLE) {