patch "staging: android: ion: Fix dma direction for" added to staging-linus
Subsystems (2)
This is a note to let you know that I've just added the patch titled
staging: android: ion: Fix dma direction for
to my staging git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
in the staging-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
d6b246bb7a29703f53aa4c050b8b3205d749caeeMon Sep 17 00:00:00 2001
From: Sushmita Susheelendra <[email protected]>
Date: Fri, 15 Dec 2017 13:59:13 -0700
Subject: 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.
--- drivers/staging/android/ion/ion.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/android/ion/ion.c +2 -2
@@ -346,7 +346,7 @@ static int ion_dma_buf_begin_cpu_access(struct dma_buf *dmabuf,mutex_lock (&buffer->lock);list_for_each_entry (a, &buffer->attachments, list) {dma_sync_sg_for_cpu (a->dev, a->table->sgl, a->table->nents, -DMA_BIDIRECTIONAL ); + direction); }mutex_unlock (&buffer->lock);
@@ -368,7 +368,7 @@ static int ion_dma_buf_end_cpu_access(struct dma_buf *dmabuf,mutex_lock (&buffer->lock);list_for_each_entry (a, &buffer->attachments, list) {dma_sync_sg_for_device (a->dev, a->table->sgl, a->table->nents, -DMA_BIDIRECTIONAL ); + direction); }mutex_unlock (&buffer->lock);
Signature · 1 line
2.15.1