aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/ioat/dma.c')
-rw-r--r--drivers/dma/ioat/dma.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c
index abc96c4c0796..f59b6f42f866 100644
--- a/drivers/dma/ioat/dma.c
+++ b/drivers/dma/ioat/dma.c
@@ -396,7 +396,7 @@ static dma_cookie_t ioat1_tx_submit(struct dma_async_tx_descriptor *tx)
396 dump_desc_dbg(ioat, chain_tail); 396 dump_desc_dbg(ioat, chain_tail);
397 dump_desc_dbg(ioat, first); 397 dump_desc_dbg(ioat, first);
398 398
399 ioat->pending += desc->tx_cnt; 399 ioat->pending += desc->hw->tx_cnt;
400 if (ioat->pending >= ioat_pending_level) 400 if (ioat->pending >= ioat_pending_level)
401 __ioat1_dma_memcpy_issue_pending(ioat); 401 __ioat1_dma_memcpy_issue_pending(ioat);
402 spin_unlock_bh(&ioat->desc_lock); 402 spin_unlock_bh(&ioat->desc_lock);
@@ -655,11 +655,11 @@ ioat1_dma_prep_memcpy(struct dma_chan *c, dma_addr_t dma_dest,
655 spin_unlock_bh(&ioat->desc_lock); 655 spin_unlock_bh(&ioat->desc_lock);
656 656
657 desc->txd.flags = flags; 657 desc->txd.flags = flags;
658 desc->tx_cnt = tx_cnt;
659 desc->len = total_len; 658 desc->len = total_len;
660 list_splice(&chain, &desc->txd.tx_list); 659 list_splice(&chain, &desc->txd.tx_list);
661 hw->ctl_f.int_en = !!(flags & DMA_PREP_INTERRUPT); 660 hw->ctl_f.int_en = !!(flags & DMA_PREP_INTERRUPT);
662 hw->ctl_f.compl_write = 1; 661 hw->ctl_f.compl_write = 1;
662 hw->tx_cnt = tx_cnt;
663 dump_desc_dbg(ioat, desc); 663 dump_desc_dbg(ioat, desc);
664 664
665 return &desc->txd; 665 return &desc->txd;