diff options
author | Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com> | 2018-09-29 11:18:00 -0600 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-11-11 16:03:53 +0530 |
commit | 0e03aca2659ef7a85eaff1a1ca9b0b498002ede8 (patch) | |
tree | 9ddc5ded8f13f4d2b53f9613a010751a36972a32 /drivers/dma/xilinx | |
parent | 4e47d24a908c882b94c3f60cec56f02ac4e9bcea (diff) | |
download | linux-stable-0e03aca2659ef7a85eaff1a1ca9b0b498002ede8.tar.gz linux-stable-0e03aca2659ef7a85eaff1a1ca9b0b498002ede8.tar.bz2 linux-stable-0e03aca2659ef7a85eaff1a1ca9b0b498002ede8.zip |
dmaengine: xilinx_dma: Fix 64-bit simple CDMA transfer
In AXI CDMA simple mode also pass MSB bits of source and destination
address to xilinx_write function. This fixes simple CDMA operation
mode using 64-bit addressing.
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Appana Durga Kedareswara Rao <appana.durga.rao@xilinx.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/xilinx')
-rw-r--r-- | drivers/dma/xilinx/xilinx_dma.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/dma/xilinx/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index 153ca584eba5..02880963092f 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -1247,8 +1247,10 @@ static void xilinx_cdma_start_transfer(struct xilinx_dma_chan *chan) hw = &segment->hw; - xilinx_write(chan, XILINX_CDMA_REG_SRCADDR, hw->src_addr); - xilinx_write(chan, XILINX_CDMA_REG_DSTADDR, hw->dest_addr); + xilinx_write(chan, XILINX_CDMA_REG_SRCADDR, + xilinx_prep_dma_addr_t(hw->src_addr)); + xilinx_write(chan, XILINX_CDMA_REG_DSTADDR, + xilinx_prep_dma_addr_t(hw->dest_addr)); /* Start the transfer */ dma_ctrl_write(chan, XILINX_DMA_REG_BTT, |