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: Ife98434a049ef4377f5148854d1d8b1f20345cfa
Signed-off-by:
Jigarkumar Zala <jzala@codeaurora.org>
Loading
Please register or sign in to comment