aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/pl330.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/pl330.c')
-rw-r--r--drivers/dma/pl330.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index ecab4ea059b4..17ee758b419f 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -1198,6 +1198,9 @@ static inline int _loop(unsigned dry_run, u8 buf[],
1198 unsigned lcnt0, lcnt1, ljmp0, ljmp1; 1198 unsigned lcnt0, lcnt1, ljmp0, ljmp1;
1199 struct _arg_LPEND lpend; 1199 struct _arg_LPEND lpend;
1200 1200
1201 if (*bursts == 1)
1202 return _bursts(dry_run, buf, pxs, 1);
1203
1201 /* Max iterations possible in DMALP is 256 */ 1204 /* Max iterations possible in DMALP is 256 */
1202 if (*bursts >= 256*256) { 1205 if (*bursts >= 256*256) {
1203 lcnt1 = 256; 1206 lcnt1 = 256;