diff options
| author | bouyer <bouyer@NetBSD.org> | 2006-01-22 16:40:56 +0000 |
|---|---|---|
| committer | bouyer <bouyer@NetBSD.org> | 2006-01-22 16:40:56 +0000 |
| commit | 6d97d9d0807cd19fefedc9d4881fe1ea8abc2994 (patch) | |
| tree | d35043015fa88a8d117c8095f96e4e414bcc36fd /sys/dev | |
| parent | 9813905f44b092c194333d77a010c6e2d2cadefe (diff) | |
For an IDENTIFY we have to wait for DRQ after issuing the command.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/ata/ata.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ata/ata.c b/sys/dev/ata/ata.c index 64185dfb67b..465b2c08af7 100644 --- a/sys/dev/ata/ata.c +++ b/sys/dev/ata/ata.c @@ -1,4 +1,4 @@ -/* $NetBSD: ata.c,v 1.72 2005/12/11 12:21:14 christos Exp $ */ +/* $NetBSD: ata.c,v 1.73 2006/01/22 16:40:56 bouyer Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.72 2005/12/11 12:21:14 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.73 2006/01/22 16:40:56 bouyer Exp $"); #ifndef ATADEBUG #define ATADEBUG @@ -585,12 +585,12 @@ ata_get_params(struct ata_drive_datas *drvp, u_int8_t flags, if (drvp->drive_flags & DRIVE_ATA) { ata_c.r_command = WDCC_IDENTIFY; ata_c.r_st_bmask = WDCS_DRDY; - ata_c.r_st_pmask = 0; + ata_c.r_st_pmask = WDCS_DRQ; ata_c.timeout = 3000; /* 3s */ } else if (drvp->drive_flags & DRIVE_ATAPI) { ata_c.r_command = ATAPI_IDENTIFY_DEVICE; ata_c.r_st_bmask = 0; - ata_c.r_st_pmask = 0; + ata_c.r_st_pmask = WDCS_DRQ; ata_c.timeout = 10000; /* 10s */ } else { ATADEBUG_PRINT(("ata_get_parms: no disks\n"), |
