diff options
-rw-r--r-- | drivers/ata/ahci.c | 2 | ||||
-rw-r--r-- | drivers/ata/libahci.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index da45325874d4..8db82d389592 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -583,7 +583,7 @@ static int ahci_p5wdh_hardreset(struct ata_link *link, unsigned int *class, | |||
583 | 583 | ||
584 | /* clear D2H reception area to properly wait for D2H FIS */ | 584 | /* clear D2H reception area to properly wait for D2H FIS */ |
585 | ata_tf_init(link->device, &tf); | 585 | ata_tf_init(link->device, &tf); |
586 | tf.command = 0x80; | 586 | tf.command = ATA_BUSY; |
587 | ata_tf_to_fis(&tf, 0, 0, d2h_fis); | 587 | ata_tf_to_fis(&tf, 0, 0, d2h_fis); |
588 | 588 | ||
589 | rc = sata_link_hardreset(link, sata_ehc_deb_timing(&link->eh_context), | 589 | rc = sata_link_hardreset(link, sata_ehc_deb_timing(&link->eh_context), |
diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c index 64c3f1f41af1..c240e4a80d2f 100644 --- a/drivers/ata/libahci.c +++ b/drivers/ata/libahci.c | |||
@@ -1413,7 +1413,7 @@ static int ahci_hardreset(struct ata_link *link, unsigned int *class, | |||
1413 | 1413 | ||
1414 | /* clear D2H reception area to properly wait for D2H FIS */ | 1414 | /* clear D2H reception area to properly wait for D2H FIS */ |
1415 | ata_tf_init(link->device, &tf); | 1415 | ata_tf_init(link->device, &tf); |
1416 | tf.command = 0x80; | 1416 | tf.command = ATA_BUSY; |
1417 | ata_tf_to_fis(&tf, 0, 0, d2h_fis); | 1417 | ata_tf_to_fis(&tf, 0, 0, d2h_fis); |
1418 | 1418 | ||
1419 | rc = sata_link_hardreset(link, timing, deadline, &online, | 1419 | rc = sata_link_hardreset(link, timing, deadline, &online, |