arch/nios2: add option to skip DMA sync as a part of map and unmap
authorAlexander Duyck <[email protected]>
Wed, 14 Dec 2016 23:05:00 +0000 (15:05 -0800)
committerLinus Torvalds <[email protected]>
Thu, 15 Dec 2016 00:04:07 +0000 (16:04 -0800)
commitabdf4799dac6210e3d09d368c4ed19e984c45dce
tree29b2dadb43b25abfcd52174315cf6179b64185c9
parent9f318d470e37a470d65449f94a06165ea72dbce1
arch/nios2: add option to skip DMA sync as a part of map and unmap

This change allows us to pass DMA_ATTR_SKIP_CPU_SYNC which allows us to
avoid invoking cache line invalidation if the driver will just handle it
via a sync_for_cpu or sync_for_device call.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Alexander Duyck <[email protected]>
Reviewed-by: Tobias Klauser <[email protected]>
Cc: Ley Foon Tan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/nios2/mm/dma-mapping.c