diff options
Diffstat (limited to 'kernel/drivers/dma/pl330.c')
-rw-r--r-- | kernel/drivers/dma/pl330.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/drivers/dma/pl330.c b/kernel/drivers/dma/pl330.c index 340f9e607..3dabc52b9 100644 --- a/kernel/drivers/dma/pl330.c +++ b/kernel/drivers/dma/pl330.c @@ -2328,7 +2328,7 @@ static dma_cookie_t pl330_tx_submit(struct dma_async_tx_descriptor *tx) desc->txd.callback = last->txd.callback; desc->txd.callback_param = last->txd.callback_param; } - last->last = false; + desc->last = false; dma_cookie_assign(&desc->txd); @@ -2621,6 +2621,7 @@ pl330_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dst, desc->rqcfg.brst_len = 1; desc->rqcfg.brst_len = get_burst_len(desc, len); + desc->bytes_requested = len; desc->txd.flags = flags; |