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:
Hui Li <hul@codeaurora.org>
Loading
Please register or sign in to comment