aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ahci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/ahci.c')
-rw-r--r--drivers/scsi/ahci.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c
index c67189a4e0b1..fa01894fc41b 100644
--- a/drivers/scsi/ahci.c
+++ b/drivers/scsi/ahci.c
@@ -677,19 +677,13 @@ static void ahci_eng_timeout(struct ata_port *ap)
677 677
678 spin_lock_irqsave(&host_set->lock, flags); 678 spin_lock_irqsave(&host_set->lock, flags);
679 679
680 ahci_restart_port(ap, readl(port_mmio + PORT_IRQ_STAT));
680 qc = ata_qc_from_tag(ap, ap->active_tag); 681 qc = ata_qc_from_tag(ap, ap->active_tag);
681 if (!qc) { 682 qc->err_mask |= AC_ERR_TIMEOUT;
682 printk(KERN_ERR "ata%u: BUG: timeout without command\n",
683 ap->id);
684 } else {
685 ahci_restart_port(ap, readl(port_mmio + PORT_IRQ_STAT));
686 qc->err_mask |= AC_ERR_TIMEOUT;
687 }
688 683
689 spin_unlock_irqrestore(&host_set->lock, flags); 684 spin_unlock_irqrestore(&host_set->lock, flags);
690 685
691 if (qc) 686 ata_eh_qc_complete(qc);
692 ata_eh_qc_complete(qc);
693} 687}
694 688
695static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc) 689static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc)