commit | 5b30be088e89f501dc6c2309861100bb0b336ca8 | [log] [tgz] |
---|---|---|
author | Lei Wen <leiwen@marvell.com> | Sat Oct 08 04:14:54 2011 +0000 |
committer | Andy Fleming <afleming@freescale.com> | Thu Nov 03 02:14:59 2011 -0500 |
tree | 599c282262d22ec5e2c339115b94422d71ee2f4c | |
parent | 4a32fba6ae22bfe6915dd6475a399445739765f1 [diff] [blame] |
mmc: sdhci: fix cache flush Only flush the memory range needed. Signed-off-by: Lei Wen <leiwen@marvell.com>
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 9ebd33d..4a92453 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c
@@ -196,7 +196,7 @@ 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 {