dma-mapping: Add dma_release_coherent_memory to DMA API
[ Upstream commit e61c4514 ] Add dma_release_coherent_memory to DMA API to allow dma user call it to release dev->dma_mem when the device is removed. Signed-off-by:Mark-PK Tsai <mark-pk.tsai@mediatek.com> Acked-by:
Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20220422062436.14384-2-mark-pk.tsai@mediatek.com Signed-off-by:
Mathieu Poirier <mathieu.poirier@linaro.org> Stable-dep-of: b07bc234 ("dma-mapping: clear dev->dma_mem to NULL after freeing it") Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading