summaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-07-31 07:07:01 +0000
committerConstantine Sapuntzakis <csapuntz@cvs.openbsd.org>2001-07-31 07:07:01 +0000
commit2e3fb3b8cd2166ad7a13eae879bd07d53256288f (patch)
treec9875ce529eba51532528bedbce95d83f237d5e6 /sys/dev/ata
parentbf8793fa43d4e0d4536c115ee6e5072295bc0a58 (diff)
Go down only one Ultra DMA mode at a time. Thanks to Matt Evans for
suggesting this fix. Update atapiscsi Ultra DMA downgrade logic.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/wd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c
index bc3746f92c5..df9415fd387 100644
--- a/sys/dev/ata/wd.c
+++ b/sys/dev/ata/wd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wd.c,v 1.17 2001/07/12 02:44:17 csapuntz Exp $ */
+/* $OpenBSD: wd.c,v 1.18 2001/07/31 07:07:00 csapuntz Exp $ */
/* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */
/*
@@ -278,6 +278,11 @@ wdattach(parent, self, aux)
sizeof(wd->drvp->drive_name) - 1);
wd->drvp->cf_flags = wd->sc_dev.dv_cfdata->cf_flags;
+ if ((NERRS_MAX - 2) > 0)
+ wd->drvp->n_dmaerrs = NERRS_MAX - 2;
+ else
+ wd->drvp->n_dmaerrs = 0;
+
/* read our drive info */
if (wd_get_params(wd, at_poll, &wd->sc_params) != 0) {
printf("%s: IDENTIFY failed\n", wd->sc_dev.dv_xname);