]> git.sur5r.net Git - u-boot/commitdiff
mmc: sdhci: fix cache flush
authorLei Wen <leiwen@marvell.com>
Sat, 8 Oct 2011 04:14:54 +0000 (04:14 +0000)
committerAndy Fleming <afleming@freescale.com>
Thu, 3 Nov 2011 07:14:59 +0000 (02:14 -0500)
Only flush the memory range needed.

Signed-off-by: Lei Wen <leiwen@marvell.com>
drivers/mmc/sdhci.c

index 9ebd33d90e6a37a8db7e88cb1ca280cfd2b66a6a..4a92453463c671186c4c7f1f446206b9a8ac8564 100644 (file)
@@ -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 {