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


_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to