Skip to content
Snippets Groups Projects
Commit 2c2ec4c9 authored by Lei Wen's avatar Lei Wen Committed by Andy Fleming
Browse files

mmc: sdhci: fix cache flush


Only flush the memory range needed.

Signed-off-by: default avatarLei Wen <leiwen@marvell.com>
parent fe8f7066
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment