diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2020-02-14 16:40:26 +0900 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-02-20 15:09:57 +0800 |
commit | 58d8ace12be763351df37cdcf6fdfceb646fb4dd (patch) | |
tree | 14493161aee3ee512b98effd23fdc982d3f98891 /arch/x86/include/asm/arch-ivybridge/pei_data.h | |
parent | a7b2b6cc0aa9294b570a3161a05c6ccf4c0b6e40 (diff) |
mmc: sdhci: use dma_map_single() instead of flush_cache() before DMA
Currently, sdhci_prepare_dma() calls flush_cache() regardless of the
DMA direction.
Actually, cache invalidation is enough when reading data from the device.
This is correctly handled by dma_map_single(), which mimics the DMA-API
in Linux kernel. Drivers can be agnostic which cache operation occurs
behind the scene.
This commit also sanitizes the difference between the virtual address
and the dma address.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/x86/include/asm/arch-ivybridge/pei_data.h')
0 files changed, 0 insertions, 0 deletions