From 7c158639135f6f3d4d3dfcfd66bc2e9cf7bb1969 Mon Sep 17 00:00:00 2001 From: Huibin Hong Date: Tue, 17 Oct 2017 15:46:21 +0800 Subject: [PATCH] spi: rockchip: set dma tx burst 8 If it is 16, and DMATDLR is 15, it would cause tx fifo overflow. Change-Id: I14592492be2ebd65ee47e916e25a60f0905d3eca Signed-off-by: Huibin Hong Signed-off-by: Yifeng Zhao --- drivers/spi/spi-rockchip.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/spi/spi-rockchip.c b/drivers/spi/spi-rockchip.c index 152a96216f6b..f5d6cfcb672b 100644 --- a/drivers/spi/spi-rockchip.c +++ b/drivers/spi/spi-rockchip.c @@ -482,10 +482,7 @@ static int rockchip_spi_prepare_dma(struct rockchip_spi *rs) txconf.direction = rs->dma_tx.direction; txconf.dst_addr = rs->dma_tx.addr; txconf.dst_addr_width = rs->n_bytes; - if (rs->dma_caps.max_burst > 4) - txconf.dst_maxburst = 4; - else - txconf.dst_maxburst = 1; + txconf.dst_maxburst = 8; dmaengine_slave_config(rs->dma_tx.ch, &txconf); txdesc = dmaengine_prep_slave_sg(