[PATCH] Staging: goldfish: Add DMA support using dma_alloc_coherent

Shraddha Barke shraddha.6596 at gmail.com
Wed Jan 20 03:14:41 UTC 2016



On Tue, 19 Jan 2016, Alan Cox wrote:

>> Yes I will free it using dma_free_coherent. Why should devm_kzalloc
>> be
>> replaced with dma_alloc_coherent ? I was trying to replace _pa()
>
> Why keep allocating and freeing a buffer rather than having a single
> buffer allocated once (as it is in the old driver).

Yes I was planning to use dmam_alloc_coherent which will replace the 
combination of devm_kzalloc and _pa(). I also don't have to worry about 
freeing it later.

Thanks,
Shraddha 
>
> Alan
>
>


More information about the devel mailing list