Guo Ren ae76f635d4 csky: Optimize arch_sync_dma_for_cpu/device with dma_inv_range
DMA_FROM_DEVICE only need to read dma data of memory into CPU cache,
so there is no need to clear cache before. Also clear + inv for
DMA_FROM_DEVICE won't cause problem, because the memory range for dma
won't be touched by software during dma working.

Changes for V2:
 - Remove clr cache and ignore the DMA_TO_DEVICE in _for_cpu.
 - Change inv to wbinv cache with DMA_FROM_DEVICE in _for_device.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Cc: Arnd Bergmann <arnd@arndb.de>
2019-08-06 15:15:34 +08:00
..
2019-07-19 14:21:36 +08:00
2018-10-26 00:54:23 +08:00
2019-01-04 13:13:46 -08:00
2018-10-26 00:54:25 +08:00
2018-10-25 23:36:19 +08:00
2018-10-26 00:54:26 +08:00
2018-10-26 00:54:23 +08:00
2018-12-31 23:17:24 +08:00
2018-10-25 23:36:19 +08:00
2018-10-25 23:36:19 +08:00
2018-10-26 00:54:22 +08:00
2018-10-26 00:54:26 +08:00
2018-10-25 23:36:19 +08:00
2018-12-31 23:03:53 +08:00
2018-10-26 00:54:23 +08:00
2018-10-26 00:54:23 +08:00
2018-10-26 00:54:24 +08:00
2019-05-08 11:41:08 -07:00
2018-10-25 23:36:19 +08:00
2018-10-25 23:36:19 +08:00
2018-10-25 23:36:19 +08:00
2018-10-25 23:36:19 +08:00
2018-10-26 00:54:22 +08:00