diff options
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r-- | drivers/ata/ahci.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index fb9f69252939..cf39987a31c4 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
@@ -1430,10 +1430,7 @@ static void ahci_post_internal_cmd(struct ata_queued_cmd *qc) | |||
1430 | void __iomem *mmio = ap->host->iomap[AHCI_PCI_BAR]; | 1430 | void __iomem *mmio = ap->host->iomap[AHCI_PCI_BAR]; |
1431 | void __iomem *port_mmio = ahci_port_base(mmio, ap->port_no); | 1431 | void __iomem *port_mmio = ahci_port_base(mmio, ap->port_no); |
1432 | 1432 | ||
1433 | if (qc->flags & ATA_QCFLAG_FAILED) | 1433 | if (qc->flags & ATA_QCFLAG_FAILED) { |
1434 | qc->err_mask |= AC_ERR_OTHER; | ||
1435 | |||
1436 | if (qc->err_mask) { | ||
1437 | /* make DMA engine forget about the failed command */ | 1434 | /* make DMA engine forget about the failed command */ |
1438 | ahci_stop_engine(port_mmio); | 1435 | ahci_stop_engine(port_mmio); |
1439 | ahci_start_engine(port_mmio); | 1436 | ahci_start_engine(port_mmio); |