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

Skip to content
Commit 253b79d2 authored by Hui Li's avatar Hui Li Committed by Hui Li
Browse files

soc: qcom: hab: use dma buf as default implement of export/import



When export/import buffer there are several types of buffer in hab driver,
such as kva/fd/ua, each types of buffer has its own ways to export/import.
it's very hard to maintain, and also there is a risk that buffer can be
freed when other one is still using it.

The benefit of using dma buffer as default buffer type:
1. The code looks clean, all export/import buffer will be converted to
dma buffer type, it will be easy to maintain.
2. For the further concern, dma buf has a refcnt of its own, so it will
help us to hold this buffer until there is no other one is using it.

Change-Id: I5cad648252cb23c3ebc9cc0a83ffc9004736fa12
Signed-off-by: default avatarHui Li <hul@codeaurora.org>
parent 33eaa278
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