Commit c6c732cf9ff0547430a9dedc3fcf6a93f4db54ab
Committed by
Vinod Koul
1 parent
0a0aee203c
Exists in
smarc_imx_lf-5.15.y
and in
34 other branches
ipu_idmac: re-use dma_cookie_status()
It's better to use generic dma_cookie_status() that allows user to get standard possible return codes independently of the DMAC driver in charge. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Showing 1 changed file with 1 additions and 4 deletions Side-by-side Diff
drivers/dma/ipu/ipu_idmac.c
... | ... | @@ -1593,10 +1593,7 @@ |
1593 | 1593 | static enum dma_status idmac_tx_status(struct dma_chan *chan, |
1594 | 1594 | dma_cookie_t cookie, struct dma_tx_state *txstate) |
1595 | 1595 | { |
1596 | - dma_set_tx_state(txstate, chan->completed_cookie, chan->cookie, 0); | |
1597 | - if (cookie != chan->cookie) | |
1598 | - return DMA_ERROR; | |
1599 | - return DMA_SUCCESS; | |
1596 | + return dma_cookie_status(chan, cookie, txstate); | |
1600 | 1597 | } |
1601 | 1598 | |
1602 | 1599 | static int __init ipu_idmac_init(struct ipu *ipu) |