aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <[email protected]>2016-08-29 10:30:47 -0700
committerVinod Koul <[email protected]>2016-08-31 10:09:32 +0530
commit6c28a90fb30cd3fe504e7dafe0b60b733f240f8c (patch)
tree7b75ab49d496446711a2beeb4a59b3cdab0b93c9
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
k3dma: Fix hisi burst clipping
Max burst len is a 4-bit field, but at the moment it's clipped with a 5-bit constant... reduce it to that which can be expressed Cc: Zhangfei Gao <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Vinod Koul <[email protected]> Cc: Dan Williams <[email protected]> Cc: Mark Brown <[email protected]> Cc: Andy Green <[email protected]> Acked-by: Zhangfei Gao <[email protected]> Signed-off-by: Andy Green <[email protected]> [jstultz: Forward ported to mainline] Signed-off-by: John Stultz <[email protected]> Signed-off-by: Vinod Koul <[email protected]>
-rw-r--r--drivers/dma/k3dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/k3dma.c b/drivers/dma/k3dma.c
index 39de8980128c..3d514692bdc6 100644
--- a/drivers/dma/k3dma.c
+++ b/drivers/dma/k3dma.c
@@ -551,7 +551,7 @@ static int k3_dma_config(struct dma_chan *chan,
c->ccfg |= (val << 12) | (val << 16);
if ((maxburst == 0) || (maxburst > 16))
- val = 16;
+ val = 15;
else
val = maxburst - 1;
c->ccfg |= (val << 20) | (val << 24);