diff options
| author | Alexander Motin <mav@FreeBSD.org> | 2009-03-01 22:50:14 +0000 |
|---|---|---|
| committer | Alexander Motin <mav@FreeBSD.org> | 2009-03-01 22:50:14 +0000 |
| commit | bb237e0c30d5540031498ddd9357486ee79dba6e (patch) | |
| tree | 187e271eda4c3c7116b874b3a8c74c5bc1acb18a | |
| parent | 9e462ed0587a10bb1282c2b820beda1941ab6663 (diff) | |
Notes
| -rw-r--r-- | sys/dev/ata/chipsets/ata-ahci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ata/chipsets/ata-ahci.c b/sys/dev/ata/chipsets/ata-ahci.c index 956a85d3e3ef..2dc38370ccae 100644 --- a/sys/dev/ata/chipsets/ata-ahci.c +++ b/sys/dev/ata/chipsets/ata-ahci.c @@ -683,8 +683,7 @@ ata_ahci_softreset(device_t dev, int port) ctp->cfis[1] = port & 0x0f; //ctp->cfis[7] = ATA_D_LBA | ATA_D_IBM; ctp->cfis[15] = ATA_A_4BIT; - if (ata_ahci_issue_cmd(dev, 0, 0)) - return -1; + ata_ahci_issue_cmd(dev, 0, 1000); if (ata_ahci_wait_ready(dev, 1000)) { device_printf(dev, "software reset clear timeout\n"); |
