summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Nilsson XK <stefan.xk.nilsson@stericsson.com>2011-11-21 16:42:20 +0100
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:02:59 +0200
commit339efff8f0dd0bb236b26c80963de7a1f64c8a1e (patch)
tree42dee66e2c1bb953b2ae3e6d099440bcba3608c7
parent7831c0b624cf6dcb4d860dd2452faed6c32e42d2 (diff)
mmc: mmci: Use HWFC when possible
HW flow control should not be used for write transfers less then 8 bytes. All other transfers should use HW flow control. ST-Ericsson Linux next: NA ST-Ericsson ID: 398871 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I51044d26cfc7df033852becbbc6e796396dfb45f Signed-off-by: Stefan Nilsson XK <stefan.xk.nilsson@stericsson.com> Signed-off-by: Fredrik Soderstedt <fredrik.soderstedt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/40191 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Ulf HANSSON <ulf.hansson@stericsson.com>
-rw-r--r--drivers/mmc/host/mmci.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 6e03104b7a2..eaeae3232db 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -696,14 +696,11 @@ static void mmci_start_data(struct mmci_host *host, struct mmc_data *data)
datactrl |= MCI_ST_DPSM_SDIOEN;
/*
- * The ST Micro variant for SDIO transfer sizes
- * less then or equal to 8 bytes needs to have clock
- * H/W flow control disabled. Since flow control is
- * not really needed for anything that fits in the
- * FIFO, we can disable it for any write smaller
- * than the FIFO size.
+ * The ST Micro variant for SDIO write transfer sizes
+ * less then 8 bytes needs to have clock H/W flow
+ * control disabled.
*/
- if ((host->size <= variant->fifosize) &&
+ if ((host->size < 8) &&
(data->flags & MMC_DATA_WRITE))
clk = host->clk_reg & ~variant->clkreg_enable;
else