diff options
Diffstat (limited to 'drivers/dma/pch_dma.c')
-rw-r--r-- | drivers/dma/pch_dma.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c index 5218e48aed0e..c30f63ee32c5 100644 --- a/drivers/dma/pch_dma.c +++ b/drivers/dma/pch_dma.c | |||
@@ -565,19 +565,12 @@ static enum dma_status pd_tx_status(struct dma_chan *chan, dma_cookie_t cookie, | |||
565 | struct dma_tx_state *txstate) | 565 | struct dma_tx_state *txstate) |
566 | { | 566 | { |
567 | struct pch_dma_chan *pd_chan = to_pd_chan(chan); | 567 | struct pch_dma_chan *pd_chan = to_pd_chan(chan); |
568 | dma_cookie_t last_used; | 568 | enum dma_status ret; |
569 | dma_cookie_t last_completed; | ||
570 | int ret; | ||
571 | 569 | ||
572 | spin_lock_irq(&pd_chan->lock); | 570 | spin_lock_irq(&pd_chan->lock); |
573 | last_completed = chan->completed_cookie; | 571 | ret = dma_cookie_status(chan, cookie, txstate); |
574 | last_used = chan->cookie; | ||
575 | spin_unlock_irq(&pd_chan->lock); | 572 | spin_unlock_irq(&pd_chan->lock); |
576 | 573 | ||
577 | ret = dma_async_is_complete(cookie, last_completed, last_used); | ||
578 | |||
579 | dma_set_tx_state(txstate, last_completed, last_used, 0); | ||
580 | |||
581 | return ret; | 574 | return ret; |
582 | } | 575 | } |
583 | 576 | ||