|
@@ -677,19 +677,13 @@ static void ahci_eng_timeout(struct ata_port *ap)
|
|
|
|
|
|
spin_lock_irqsave(&host_set->lock, flags);
|
|
|
|
|
|
+ ahci_restart_port(ap, readl(port_mmio + PORT_IRQ_STAT));
|
|
|
qc = ata_qc_from_tag(ap, ap->active_tag);
|
|
|
- if (!qc) {
|
|
|
- printk(KERN_ERR "ata%u: BUG: timeout without command\n",
|
|
|
- ap->id);
|
|
|
- } else {
|
|
|
- ahci_restart_port(ap, readl(port_mmio + PORT_IRQ_STAT));
|
|
|
- qc->err_mask |= AC_ERR_TIMEOUT;
|
|
|
- }
|
|
|
+ qc->err_mask |= AC_ERR_TIMEOUT;
|
|
|
|
|
|
spin_unlock_irqrestore(&host_set->lock, flags);
|
|
|
|
|
|
- if (qc)
|
|
|
- ata_eh_qc_complete(qc);
|
|
|
+ ata_eh_qc_complete(qc);
|
|
|
}
|
|
|
|
|
|
static inline int ahci_host_intr(struct ata_port *ap, struct ata_queued_cmd *qc)
|