[U-Boot] [PATCH] mmc:fsl_esdhc: fix invalidate dcache scope

Shengzhou Liu Shengzhou.Liu at nxp.com
Wed Apr 6 12:12:40 CEST 2016


commit 4683b220655 "mmc:fsl_esdhc invalidate dcache before read"
intended for ARM, which broke on PowerPC(caused memory allocation
failure under SD boot), so add condition CONFIG_ARM.

Signed-off-by: Shengzhou Liu <Shengzhou.Liu at nxp.com>
---
 drivers/mmc/fsl_esdhc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index 7cc61a0..7812e6c 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -348,8 +348,10 @@ esdhc_send_cmd(struct mmc *mmc, struct mmc_cmd *cmd, struct mmc_data *data)
 		if(err)
 			return err;
 
+#ifdef CONFIG_ARM
 		if (data->flags & MMC_DATA_READ)
 			check_and_invalidate_dcache_range(cmd, data);
+#endif
 	}
 
 	/* Figure out the transfer arguments */
-- 
2.1.0.27.g96db324



More information about the U-Boot mailing list