summaryrefslogtreecommitdiffstats
path: root/include/linux/dmaengine.h
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@intel.com>2016-02-15 11:57:02 -0500
committerVinod Koul <vinod.koul@intel.com>2016-02-22 10:52:40 -0500
commit9575632052bacc2fda38d845eb17b0fb808e13eb (patch)
tree413a361ba3fb07d1245b2406a9d2ac358ea1823a /include/linux/dmaengine.h
parent92e963f50fc74041b5e9e744c330dca48e04f08d (diff)
dmaengine: make slave address physical
The slave dmaengine semantics required the client to map dma addresses and pass DMA address to dmaengine drivers. This was a convenient notion coming from generic dma offload cases where dmaengines are interchangeable and client is not aware of which engine to map to. But in case of slave, we know the dmaengine and always use a specific one. Further the IOMMU cases can lead to failure of this notion, so make this as physical address and now dmaengine driver will do the required mapping. Original-patch-by: Linus Walleij <linus.walleij@linaro.org> Original-patch-Acked-by: Lee Jones <lee.jones@linaro.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/dmaengine.h')
-rw-r--r--include/linux/dmaengine.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h
index 16a1cad30c33..d85ecd20af50 100644
--- a/include/linux/dmaengine.h
+++ b/include/linux/dmaengine.h
@@ -357,8 +357,8 @@ enum dma_slave_buswidth {
357 */ 357 */
358struct dma_slave_config { 358struct dma_slave_config {
359 enum dma_transfer_direction direction; 359 enum dma_transfer_direction direction;
360 dma_addr_t src_addr; 360 phys_addr_t src_addr;
361 dma_addr_t dst_addr; 361 phys_addr_t dst_addr;
362 enum dma_slave_buswidth src_addr_width; 362 enum dma_slave_buswidth src_addr_width;
363 enum dma_slave_buswidth dst_addr_width; 363 enum dma_slave_buswidth dst_addr_width;
364 u32 src_maxburst; 364 u32 src_maxburst;