aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_mv.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2006-06-11 23:04:37 -0400
committerJeff Garzik <jeff@garzik.org>2006-06-11 23:04:37 -0400
commitfec69a97489f961026e24536dbb7b86ac663948c (patch)
tree869713470d81ebc261598489a2711960336c7c37 /drivers/scsi/sata_mv.c
parent1049cb478783c74ca8c99ef70e7d2bf920b9335b (diff)
parent2f9719b61e1fcf7422a016ac4f2420a0cc6ba320 (diff)
Merge branch 'upstream-fixes' into upstream
Conflicts: drivers/scsi/sata_sil24.c
Diffstat (limited to 'drivers/scsi/sata_mv.c')
-rw-r--r--drivers/scsi/sata_mv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/sata_mv.c b/drivers/scsi/sata_mv.c
index 634bab17a6bb..4a71578df3c1 100644
--- a/drivers/scsi/sata_mv.c
+++ b/drivers/scsi/sata_mv.c
@@ -2040,6 +2040,7 @@ static void mv_phy_reset(struct ata_port *ap)
2040static void mv_eng_timeout(struct ata_port *ap) 2040static void mv_eng_timeout(struct ata_port *ap)
2041{ 2041{
2042 struct ata_queued_cmd *qc; 2042 struct ata_queued_cmd *qc;
2043 unsigned long flags;
2043 2044
2044 ata_port_printk(ap, KERN_ERR, "Entering mv_eng_timeout\n"); 2045 ata_port_printk(ap, KERN_ERR, "Entering mv_eng_timeout\n");
2045 DPRINTK("All regs @ start of eng_timeout\n"); 2046 DPRINTK("All regs @ start of eng_timeout\n");
@@ -2051,8 +2052,10 @@ static void mv_eng_timeout(struct ata_port *ap)
2051 ap->host_set->mmio_base, ap, qc, qc->scsicmd, 2052 ap->host_set->mmio_base, ap, qc, qc->scsicmd,
2052 &qc->scsicmd->cmnd); 2053 &qc->scsicmd->cmnd);
2053 2054
2055 spin_lock_irqsave(&ap->host_set->lock, flags);
2054 mv_err_intr(ap, 0); 2056 mv_err_intr(ap, 0);
2055 mv_stop_and_reset(ap); 2057 mv_stop_and_reset(ap);
2058 spin_unlock_irqrestore(&ap->host_set->lock, flags);
2056 2059
2057 WARN_ON(!(qc->flags & ATA_QCFLAG_ACTIVE)); 2060 WARN_ON(!(qc->flags & ATA_QCFLAG_ACTIVE));
2058 if (qc->flags & ATA_QCFLAG_ACTIVE) { 2061 if (qc->flags & ATA_QCFLAG_ACTIVE) {