summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2003-04-14 22:51:55 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2003-04-14 22:51:55 +0000
commit687634b083136e5444e8d1a056fcf2acd7fccf0e (patch)
treefb65399aa53c24b64b071eab376cfc4150ef5e61
parentb591fe9f7d6ea393475c2eeb4777745699e9cd5d (diff)
revert last change since it causes problems on some devices
-rw-r--r--sys/dev/ata/ata.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ata/ata.c b/sys/dev/ata/ata.c
index 22d9a9b7d83..c80cd281429 100644
--- a/sys/dev/ata/ata.c
+++ b/sys/dev/ata/ata.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ata.c,v 1.18 2003/04/12 10:58:45 grange Exp $ */
+/* $OpenBSD: ata.c,v 1.19 2003/04/14 22:51:54 grange Exp $ */
/* $NetBSD: ata.c,v 1.9 1999/04/15 09:41:09 bouyer Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -81,12 +81,12 @@ ata_get_params(drvp, flags, prms)
if (drvp->drive_flags & DRIVE_ATA) {
wdc_c.r_command = WDCC_IDENTIFY;
wdc_c.r_st_bmask = WDCS_DRDY;
- wdc_c.r_st_pmask = 0;
+ wdc_c.r_st_pmask = WDCS_DRQ;
wdc_c.timeout = 3000; /* 3s */
} else if (drvp->drive_flags & DRIVE_ATAPI) {
wdc_c.r_command = ATAPI_IDENTIFY_DEVICE;
wdc_c.r_st_bmask = 0;
- wdc_c.r_st_pmask = 0;
+ wdc_c.r_st_pmask = WDCS_DRQ;
wdc_c.timeout = 10000; /* 10s */
} else {
return CMD_ERR;