diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 2000-06-13 04:12:03 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 2000-06-13 04:12:03 +0000 |
commit | ed9827101edd87e66647f45db2a21a7cf4861a6a (patch) | |
tree | 83d7094156c3d8c8bc3f9db4212994c774c32169 /sys/dev/ic/wdc.c | |
parent | 054a2b28e38fc52ebfcfaf539099c48a0df47c58 (diff) |
Fix from Manuel Bouyer
Don't falsely detect nonexistent drives
Diffstat (limited to 'sys/dev/ic/wdc.c')
-rw-r--r-- | sys/dev/ic/wdc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/wdc.c b/sys/dev/ic/wdc.c index 6760fd1bee4..dcbd9e82cb8 100644 --- a/sys/dev/ic/wdc.c +++ b/sys/dev/ic/wdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wdc.c,v 1.16 2000/04/10 07:06:14 csapuntz Exp $ */ +/* $OpenBSD: wdc.c,v 1.17 2000/06/13 04:12:02 chris Exp $ */ /* $NetBSD: wdc.c,v 1.68 1999/06/23 19:00:17 bouyer Exp $ */ @@ -1395,7 +1395,7 @@ __wdccommand_start(chp, xfer) CHP_WRITE_REG(chp, wdr_sdh, WDSD_IBM | (drive << 4)); if (wdc_c->r_command != ATAPI_SOFT_RESET) { - if (wdcwait(chp, wdc_c->r_st_bmask, wdc_c->r_st_bmask, + if (wdcwait(chp, wdc_c->r_st_bmask | WDCS_DRQ, wdc_c->r_st_bmask, wdc_c->timeout) != 0) { wdc_c->flags |= AT_TIMEOU; __wdccommand_done(chp, xfer); |