|
@@ -318,7 +318,7 @@ static void zynqmp_dma_config_sg_ll_desc(struct zynqmp_dma_chan *chan,
|
|
|
|
|
|
if (prev) {
|
|
if (prev) {
|
|
dma_addr_t addr = chan->desc_pool_p +
|
|
dma_addr_t addr = chan->desc_pool_p +
|
|
- ((dma_addr_t)sdesc - (dma_addr_t)chan->desc_pool_v);
|
|
|
|
|
|
+ ((uintptr_t)sdesc - (uintptr_t)chan->desc_pool_v);
|
|
ddesc = prev + 1;
|
|
ddesc = prev + 1;
|
|
prev->nxtdscraddr = addr;
|
|
prev->nxtdscraddr = addr;
|
|
ddesc->nxtdscraddr = addr + ZYNQMP_DMA_DESC_SIZE(chan);
|
|
ddesc->nxtdscraddr = addr + ZYNQMP_DMA_DESC_SIZE(chan);
|