]> git.baikalelectronics.ru Git - uboot.git/commit
mmc: sdhci: skip cache invalidation if DMA is not used
authorYuezhang.Mo@sony.com <Yuezhang.Mo@sony.com>
Thu, 14 Jan 2021 05:46:50 +0000 (05:46 +0000)
committerPeng Fan <peng.fan@nxp.com>
Fri, 19 Feb 2021 07:03:25 +0000 (15:03 +0800)
commita6caba75a9200d76bbdc18b2eec434bff65d292c
treef84f4b5d832773e369a815bb26b3c45fa277d5d7
parent9405591a9bd5ea42001c69a56d8482a5bf065563
mmc: sdhci: skip cache invalidation if DMA is not used

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 53cc06ad1087 ("mmc: sdhci: fix missing cache invalidation after reading by DMA")
Signed-off-by: Yuezhang.Mo <Yuezhang.Mo@sony.com>
Reviewed-by: Andy Wu <Andy.Wu@sony.com>
drivers/mmc/sdhci.c