arc: fix arc_dma_sync_sg_for_{cpu,device}
authorChristoph Hellwig <hch@lst.de>
Fri, 18 May 2018 13:16:45 +0000 (15:16 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 19 May 2018 06:46:12 +0000 (08:46 +0200)
commitb591741072271f3a7cbf5b976e64ffbfa9a7ce8c
tree5aeb46291b7c74b432519384f88d95a18f03eb7b
parent713a74624bba6c449213b6a7a2ab0065f6e2c7c9
arc: fix arc_dma_sync_sg_for_{cpu,device}

These functions should perform the same functionality as calling
arc_dma_sync_single_for_{cpu,device} on each S/G list element.  Ensure
they actually do that by calling arc_dma_sync_single_for_{cpu,device}.
Otherwise we could be passing a different dir argument.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Alexey Brodkin <abrodkin@synopsys.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/mm/dma.c