]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
sata_mv: fix 8-port timeouts on 508x/6081 chips
authorMark Lord <liml@rtr.ca>
Mon, 19 Jan 2009 23:04:37 +0000 (18:04 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 26 Jan 2009 11:36:41 +0000 (06:36 -0500)
Fix a longstanding bug for the 8-port Marvell Sata controllers (508x/6081),
where accesses to the upper 4 ports would cause lost-interrupts / timeouts
for the lower 4-ports.  With this patch, the 6081 boards should finally be
reliable enough for mainstream use with Linux.

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_mv.c

index 86918634a4c56e1ae7fa066006c5e56fc32ac123..ce9d6ad5a64fa49e2fb7553b2e67358a6675ec29 100644 (file)
@@ -883,7 +883,7 @@ static void mv_start_dma(struct ata_port *ap, void __iomem *port_mmio,
                struct mv_host_priv *hpriv = ap->host->private_data;
                int hardport = mv_hardport_from_port(ap->port_no);
                void __iomem *hc_mmio = mv_hc_base_from_port(
-                                       mv_host_base(ap->host), hardport);
+                                       mv_host_base(ap->host), ap->port_no);
                u32 hc_irq_cause, ipending;
 
                /* clear EDMA event indicators, if any */