]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
staging: ion: ion_cma_heap: Don't directly use dma_common_get_sgtable
authorJon Medhurst (Tixy) <tixy@linaro.org>
Fri, 17 Jul 2015 11:01:29 +0000 (12:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 04:14:08 +0000 (21:14 -0700)
commit56fa2ece881348d314800b858581f2ae950f8e20
tree996d9543083f45fa7951398d1e9dbe782a1b3dcd
parentb20691652b8c09992096490d9dd11319c1e7ce5e
staging: ion: ion_cma_heap: Don't directly use dma_common_get_sgtable

Use dma_get_sgtable rather than dma_common_get_sgtable so a device's
dma_ops aren't bypassed. This is essential in situations where a device
uses an IOMMU and the physical memory is not contiguous (as the common
function assumes).

Signed-off-by: Jon Medhurst <tixy@linaro.org>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_cma_heap.c