parisc: Improve cache flushing for PCXL in arch_sync_dma_for_cpu()
authorHelge Deller <deller@gmx.de>
Wed, 17 May 2023 13:52:30 +0000 (15:52 +0200)
committerHelge Deller <deller@gmx.de>
Mon, 22 May 2023 16:30:52 +0000 (18:30 +0200)
commit59fa12646d9f56c842b4d5b6418ed77af625c588
tree36097c869963712a909e4e6f689eec4c8ea739a7
parent44c026a73be8038f03dbdeef028b642880cf1511
parisc: Improve cache flushing for PCXL in arch_sync_dma_for_cpu()

Add comment in arch_sync_dma_for_device() and handle the direction flag in
arch_sync_dma_for_cpu().

When receiving data from the device (DMA_FROM_DEVICE) unconditionally
purge the data cache in arch_sync_dma_for_cpu().

Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/pci-dma.c