From: Lei Wen Date: Sat, 8 Oct 2011 04:14:54 +0000 (+0000) Subject: mmc: sdhci: fix cache flush X-Git-Tag: v2011.12-rc1~333^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2c2ec4c969e1d3db940679c63e8f749d1129c190;p=u-boot mmc: sdhci: fix cache flush Only flush the memory range needed. Signed-off-by: Lei Wen --- diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 9ebd33d90e..4a92453463 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -196,7 +196,7 @@ int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, sdhci_writel(host, cmd->cmdarg, SDHCI_ARGUMENT); #ifdef CONFIG_MMC_SDMA - flush_cache(0, ~0); + flush_cache(start_addr, trans_bytes); #endif sdhci_writew(host, SDHCI_MAKE_CMD(cmd->cmdidx, flags), SDHCI_COMMAND); do {