Patchwork [U-Boot,V3,1/5] mmc: sdhci: fix cache flush

login
register
mail settings
Submitter Lei Wen
Date Oct. 8, 2011, 1:47 p.m.
Message ID <1318081636-5372-2-git-send-email-leiwen@marvell.com>
Download mbox | patch
Permalink /patch/118530/
State Changes Requested
Delegated to: Albert ARIBAUD
Headers show

Comments

Lei Wen - Oct. 8, 2011, 1:47 p.m.
Only flush the memory range needed.

Signed-off-by: Lei Wen <leiwen@marvell.com>
---
Changelog:
V2: no change
V3: no change

 drivers/mmc/sdhci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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 @@  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 {