summaryrefslogtreecommitdiffstats
path: root/drivers/dma/dw-axi-dmac/dw-axi-dmac.h
diff options
context:
space:
mode:
authorSia Jee Heng <jee.heng.sia@intel.com>2021-01-25 02:32:43 +0100
committerVinod Koul <vkoul@kernel.org>2021-02-01 10:38:15 +0100
commit66c6c9455efce0185911d7befb14992122c99474 (patch)
tree0e417892e72096b093cba2f74f48af8cde9307ae /drivers/dma/dw-axi-dmac/dw-axi-dmac.h
parentdmaengine: dw-axi-dmac: Add device_synchronize() callback (diff)
downloadlinux-66c6c9455efce0185911d7befb14992122c99474.tar.xz
linux-66c6c9455efce0185911d7befb14992122c99474.zip
dmaengine: dw-axi-dmac: Add device_config operation
Add device_config() callback function so that the device address can be passed to the dma driver. DMA clients use this interface to pass in the device address to the AxiDMA. Without this interface, data transfer between device to memory and memory to device would failed. Signed-off-by: Sia Jee Heng <jee.heng.sia@intel.com> Tested-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> Link: https://lore.kernel.org/r/20210125013255.25799-6-jee.heng.sia@intel.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to '')
-rw-r--r--drivers/dma/dw-axi-dmac/dw-axi-dmac.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac.h b/drivers/dma/dw-axi-dmac/dw-axi-dmac.h
index f886b2bb75de..a75b921d6b1a 100644
--- a/drivers/dma/dw-axi-dmac/dw-axi-dmac.h
+++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac.h
@@ -43,6 +43,7 @@ struct axi_dma_chan {
struct virt_dma_chan vc;
struct axi_dma_desc *desc;
+ struct dma_slave_config config;
/* these other elements are all protected by vc.lock */
bool is_paused;
};