aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/dma/at_hdmac.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c
index b7050a46bd87..1ee3ed187f4d 100644
--- a/drivers/dma/at_hdmac.c
+++ b/drivers/dma/at_hdmac.c
@@ -417,37 +417,6 @@ static void atc_complete_all(struct at_dma_chan *atchan)
417} 417}
418 418
419/** 419/**
420 * atc_cleanup_descriptors - cleanup up finished descriptors in active_list
421 * @atchan: channel to be cleaned up
422 *
423 * Called with atchan->lock held and bh disabled
424 */
425static void atc_cleanup_descriptors(struct at_dma_chan *atchan)
426{
427 struct at_desc *desc, *_desc;
428 struct at_desc *child;
429
430 dev_vdbg(chan2dev(&atchan->chan_common), "cleanup descriptors\n");
431
432 list_for_each_entry_safe(desc, _desc, &atchan->active_list, desc_node) {
433 if (!(desc->lli.ctrla & ATC_DONE))
434 /* This one is currently in progress */
435 return;
436
437 list_for_each_entry(child, &desc->tx_list, desc_node)
438 if (!(child->lli.ctrla & ATC_DONE))
439 /* Currently in progress */
440 return;
441
442 /*
443 * No descriptors so far seem to be in progress, i.e.
444 * this chain must be done.
445 */
446 atc_chain_complete(atchan, desc);
447 }
448}
449
450/**
451 * atc_advance_work - at the end of a transaction, move forward 420 * atc_advance_work - at the end of a transaction, move forward
452 * @atchan: channel where the transaction ended 421 * @atchan: channel where the transaction ended
453 * 422 *