sata_mv: increase PIO IORDY timeout
authorSaeed Bishara <saeed@marvell.com>
Sun, 6 Dec 2009 16:26:17 +0000 (18:26 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Dec 2009 05:56:36 +0000 (00:56 -0500)
The old value (0xbc) in cycles of the IORDY timeout is suitable for
devices with core clock of 166 MHz, but some SoC controllers have
faster core clocks. The new value will make the IORDY timeout large
enough also for all SoC devices.

Signed-off-by: Saeed Bishara <saeed@marvell.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_mv.c

index a8a7be0..bbeaf3a 100644 (file)
@@ -3393,7 +3393,7 @@ static void mv_soc_reset_hc_port(struct mv_host_priv *hpriv,
        ZERO(0x024);            /* respq outp */
        ZERO(0x020);            /* respq inp */
        ZERO(0x02c);            /* test control */
-       writel(0xbc, port_mmio + EDMA_IORDY_TMOUT);
+       writel(0x800, port_mmio + EDMA_IORDY_TMOUT);
 }
 
 #undef ZERO