diff options
author | Lei Wen <leiwen@marvell.com> | 2011-10-08 04:14:54 +0000 |
---|---|---|
committer | Andy Fleming <afleming@freescale.com> | 2011-11-03 02:14:59 -0500 |
commit | 2c2ec4c969e1d3db940679c63e8f749d1129c190 (patch) | |
tree | 599c282262d22ec5e2c339115b94422d71ee2f4c /drivers | |
parent | fe8f7066d394d72ff96f4b8e5988407da149e462 (diff) | |
download | u-boot-imx-2c2ec4c969e1d3db940679c63e8f749d1129c190.zip u-boot-imx-2c2ec4c969e1d3db940679c63e8f749d1129c190.tar.gz u-boot-imx-2c2ec4c969e1d3db940679c63e8f749d1129c190.tar.bz2 |
mmc: sdhci: fix cache flush
Only flush the memory range needed.
Signed-off-by: Lei Wen <leiwen@marvell.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/sdhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |