Re: [PATCH] mmc: sdhci: skip cache invalidation if DMA is not used

2021-01-14 Thread Andy.Wu
The config usage keep the same style as function sdhci_prepare_dma(). Reviewed-by: Andy Wu > +#if (defined(CONFIG_MMC_SDHCI_SDMA) || CONFIG_IS_ENABLED(MMC_SDHCI_ADMA)) > dma_unmap_single(host->start_addr, data->blocks * data->blocksize, > mmc_get_dma_dir(data)); > +#endif -- Sent from:

[PATCH] mmc: sdhci: skip cache invalidation if DMA is not used

2021-01-13 Thread Yuezhang.Mo
If DMA(SDMA or ADMA) is not used, the cache invalidation after reading is no need, should be skipped. Otherwise U-Boot may hang at the cache invalidation. Found this issue and tested this fix on DragonBoard 410c. Fixes: commit 4155ad9aac94 ("mmc: sdhci: fix missing cache invalidation after readi