dma-noncoherent: add a arch_sync_dma_for_cpu_all hook
authorChristoph Hellwig <[email protected]>
Fri, 15 Jun 2018 11:08:51 +0000 (13:08 +0200)
committerPaul Burton <[email protected]>
Sun, 24 Jun 2018 16:27:27 +0000 (09:27 -0700)
commitfaef87723ace12e5f685437c1e68cbecb69a7a89
tree98429f9c5bb8960e95fe7063c0c5017dc98c518e
parentc5e2bbb45d28d53d278f25068142a283a0a74f7a
dma-noncoherent: add a arch_sync_dma_for_cpu_all hook

The MIPS bmips platform needs a global flush when transferring ownership
back to the CPU.  Add a hook for that to the dma-noncoherent
implementation.

Signed-off-by: Christoph Hellwig <[email protected]>
Patchwork: https://patchwork.linux-mips.org/patch/19549/
Signed-off-by: Paul Burton <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: David Daney <[email protected]>
Cc: Kevin Cernekee <[email protected]>
Cc: Jiaxun Yang <[email protected]>
Cc: Tom Bogendoerfer <[email protected]>
Cc: Huacai Chen <[email protected]>
Cc: [email protected]
Cc: [email protected]
include/linux/dma-noncoherent.h
kernel/dma/noncoherent.c