]> git.baikalelectronics.ru Git - kernel.git/commit
staging: android: ion: Fix dma direction for dma_sync_sg_for_cpu/device
authorSushmita Susheelendra <ssusheel@codeaurora.org>
Fri, 15 Dec 2017 20:59:13 +0000 (13:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 14:53:39 +0000 (15:53 +0100)
commitb439a8159d20b7c7c67270901fba9337e33743ba
tree77fe162f20c56d2c389df44dc17f41c9ebd06aae
parent95d0ee9566b31020d7298c31fda2fab8b2553de7
staging: android: ion: Fix dma direction for dma_sync_sg_for_cpu/device

Use the direction argument passed into begin_cpu_access
and end_cpu_access when calling the dma_sync_sg_for_cpu/device.
The actual cache primitive called depends on the direction
passed in.

Signed-off-by: Sushmita Susheelendra <ssusheel@codeaurora.org>
Cc: stable <stable@vger.kernel.org>
Acked-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c