Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d42cb3e4 authored by Jigarkumar Zala's avatar Jigarkumar Zala Committed by Niranjan Reddy Dumbala
Browse files

msm: camera: Add put_cpu_buf for signaling end of cpu access



dma_buf_(begin/end)_cpu_access api needs to be called in pair as per
dma_buf expectation. We call begin_cpu_access in get_cpu_buf but there
is no indication when the cpu access ends. This change adds put_cpu_buf
function that the drivers will call to signal the end of cpu access.
Mem mgr will call end_cpu_access on that dma_buf in put_cpu_buf.
This change also adds put_cpu_buf calls to matching get_cpu_buf calls
in all the drivers.

Change-Id: Iace90ff33d9271326532f815fc84e0a9062a842c
Signed-off-by: default avatarJigarkumar Zala <jzala@codeaurora.org>
Signed-off-by: default avatarNiranjan Reddy Dumbala <dnreddy@codeaurora.org>
parent 0d2cc45e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment