aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@stericsson.com>2010-01-25 07:14:46 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-01-27 22:00:47 +0000
commitf28e8a4d027e4e21c3d0a52706527bb87397bea0 (patch)
tree525f7ccaeb6fded440e408b2953d95f8ef937743 /drivers/mmc/host
parent633e81a66b7e6c22a50da860371159cfa2b06d53 (diff)
downloadkernel_goldelico_gta04-f28e8a4d027e4e21c3d0a52706527bb87397bea0.zip
kernel_goldelico_gta04-f28e8a4d027e4e21c3d0a52706527bb87397bea0.tar.gz
kernel_goldelico_gta04-f28e8a4d027e4e21c3d0a52706527bb87397bea0.tar.bz2
ARM: 5896/1: MMCI: work around a hardware bug in U300
In the U300 some hardware bug makes the status flag not come up signalling a successful write (or anything else, like an error, for that matter) on write requests. This little quirk makes the writes work on U300. Signed-off-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r--drivers/mmc/host/mmci.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 90d168a..643818a 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -184,6 +184,17 @@ mmci_data_irq(struct mmci_host *host, struct mmc_data *data,
{
if (status & MCI_DATABLOCKEND) {
host->data_xfered += data->blksz;
+#ifdef CONFIG_ARCH_U300
+ /*
+ * On the U300 some signal or other is
+ * badly routed so that a data write does
+ * not properly terminate with a MCI_DATAEND
+ * status flag. This quirk will make writes
+ * work again.
+ */
+ if (data->flags & MMC_DATA_WRITE)
+ status |= MCI_DATAEND;
+#endif
}
if (status & (MCI_DATACRCFAIL|MCI_DATATIMEOUT|MCI_TXUNDERRUN|MCI_RXOVERRUN)) {
if (status & MCI_DATACRCFAIL)