mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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 <huibin.hong@rock-chips.com> Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user