openrisc: fix cache maintainance the the sync_single_for_device DMA operation
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Jul 2018 13:02:31 +0000 (06:02 -0700)
committerStafford Horne <shorne@gmail.com>
Sat, 21 Jul 2018 04:49:48 +0000 (13:49 +0900)
commit2c1de929aef31afbff0dad81de9cc26056d3d01b
treee33babd08d443e5332f366a74eb605bab4c14ae1
parentdcc9c91944129c9541cafe3112e69c1bdd328701
openrisc: fix cache maintainance the the sync_single_for_device DMA operation

The cache maintaince in the sync_single_for_device operation should be
equivalent to the map_page operation to facilitate reusing buffers.  Fix the
openrisc implementation by moving the cache maintaince performed in map_page
into the sync_single method, and calling that from map_page.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/dma.c