aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/dma/amba-pl08x.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 91dd6bfcc30f..be7fa174d6c0 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -685,31 +685,25 @@ static int pl08x_fill_llis_for_desc(struct pl08x_driver_data *pl08x,
685 target_len = min(remainder, max_bytes_per_lli); 685 target_len = min(remainder, max_bytes_per_lli);
686 686
687 /* 687 /*
688 * Set bus lengths for incrementing buses 688 * Set bus lengths for incrementing buses to the
689 * to number of bytes which fill to next memory 689 * number of bytes which fill to next memory boundary,
690 * boundary 690 * limiting on the target length calculated above.
691 */ 691 */
692 if (cctl & PL080_CONTROL_SRC_INCR) 692 if (cctl & PL080_CONTROL_SRC_INCR)
693 txd->srcbus.fill_bytes = 693 txd->srcbus.fill_bytes =
694 pl08x_pre_boundary( 694 pl08x_pre_boundary(txd->srcbus.addr,
695 txd->srcbus.addr, 695 target_len);
696 remainder);
697 else 696 else
698 txd->srcbus.fill_bytes = 697 txd->srcbus.fill_bytes = target_len;
699 max_bytes_per_lli;
700 698
701 if (cctl & PL080_CONTROL_DST_INCR) 699 if (cctl & PL080_CONTROL_DST_INCR)
702 txd->dstbus.fill_bytes = 700 txd->dstbus.fill_bytes =
703 pl08x_pre_boundary( 701 pl08x_pre_boundary(txd->dstbus.addr,
704 txd->dstbus.addr, 702 target_len);
705 remainder);
706 else 703 else
707 txd->dstbus.fill_bytes = 704 txd->dstbus.fill_bytes = target_len;
708 max_bytes_per_lli;
709 705
710 /* 706 /* Find the nearest */
711 * Find the nearest
712 */
713 lli_len = min(txd->srcbus.fill_bytes, 707 lli_len = min(txd->srcbus.fill_bytes,
714 txd->dstbus.fill_bytes); 708 txd->dstbus.fill_bytes);
715 709