diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2020-02-14 16:40:27 +0900 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-02-20 15:09:57 +0800 |
commit | 4155ad9aac9474610038b525da9eec8ad9afbc12 (patch) | |
tree | 8f1c1a245a342946660d717db55560f68a31e207 /arch/x86/include/asm | |
parent | 58d8ace12be763351df37cdcf6fdfceb646fb4dd (diff) |
mmc: sdhci: fix missing cache invalidation after reading by DMA
This driver currently performs cache operation before the DMA start,
but does nothing after the DMA completion.
When reading data by DMA, the cache invalidation is needed also after
finishing the DMA transfer. Otherwise, the CPU might read data from
the cache instead of from the main memory when speculative memory read
or memory prefetch occurs.
Instead of calling the cache operation directly, this commit adds
dma_unmap_single(), which performs cache invalidation internally,
but drivers do not need which operation is being run.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/x86/include/asm')
0 files changed, 0 insertions, 0 deletions