staging: android: ion: Call dma_map_sg for syncing and mapping
authorLaura Abbott <labbott@redhat.com>
Mon, 3 Apr 2017 18:57:48 +0000 (11:57 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Apr 2017 10:35:11 +0000 (12:35 +0200)
commit2a55e7b5e5446c970e00be1bca8536f4a58bf21c
treee5cbc8c68af8a3a6f87ffc73755aa4451331ef1e
parent17fd283f3870dd63c91c99591aab14e21799c119
staging: android: ion: Call dma_map_sg for syncing and mapping

Technically, calling dma_buf_map_attachment should return a buffer
properly dma_mapped. Add calls to dma_map_sg to begin_cpu_access to
ensure this happens. As a side effect, this lets Ion buffers take
advantage of the dma_buf sync ioctls.

Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion_priv.h