diff options
-rw-r--r-- | drivers/ata/ahci.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index cef2e70d64f8..988f8bbd14ff 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -736,8 +736,7 @@ static int ahci_softreset(struct ata_port *ap, unsigned int *class) | |||
736 | } | 736 | } |
737 | 737 | ||
738 | /* check BUSY/DRQ, perform Command List Override if necessary */ | 738 | /* check BUSY/DRQ, perform Command List Override if necessary */ |
739 | ahci_tf_read(ap, &tf); | 739 | if (ahci_check_status(ap) & (ATA_BUSY | ATA_DRQ)) { |
740 | if (tf.command & (ATA_BUSY | ATA_DRQ)) { | ||
741 | rc = ahci_clo(ap); | 740 | rc = ahci_clo(ap); |
742 | 741 | ||
743 | if (rc == -EOPNOTSUPP) { | 742 | if (rc == -EOPNOTSUPP) { |