diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2020-12-08 12:04:28 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-12-11 18:50:08 +0300 |
commit | ab650ef6d548153862119e1bf3bf267510707f48 (patch) | |
tree | 9ec923ada712fb62c210df4e216bcb0369a7bada /lib/Kconfig.debug | |
parent | 4f910c035f38053ac8eb63a672c78862c535cd0f (diff) | |
download | linux-ab650ef6d548153862119e1bf3bf267510707f48.tar.xz |
dmaengine: Add support for per channel coherency handling
If the DMA device supports per channel coherency configuration (a channel
can be configured to have coherent or not coherent view) then a single
device (the DMA controller's device) can not be used for dma_api for all
channels as channels can have different coherency.
Introduce custom_dma_mapping flag for the dma_chan and a new helper to get
the device pointer to be used for dma_api for the given channel.
Client drivers should be updated to be able to support per channel
coherency by:
- dma_map_single(chan->device->dev, ptr, size, DMA_TO_DEVICE);
+ struct device *dma_dev = dmaengine_get_dma_device(chan);
+
+ dma_map_single(dma_dev, ptr, size, DMA_TO_DEVICE);
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20201208090440.31792-9-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'lib/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions