spi: rockchip: set tx burst len 16, rx burst len 1.
authorHuibin Hong <huibin.hong@rock-chips.com>
Wed, 15 Jun 2016 09:40:42 +0000 (17:40 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 23 Jun 2016 03:35:59 +0000 (11:35 +0800)
commite0a1e9b7cded261847ac972311082724afb75cbd
tree3557bf14341acde75e55d067263b35609c937783
parentc66ecf19b98ffac86177c29859e683de39f44e73
spi: rockchip: set tx burst len 16, rx burst len 1.

Set ROCKCHIP_SPI_DMATDLR (rs->fifo_len - 16 - 1), which
can keep spi transferring. By the way, rx burst len must be
set 1, because it is hard to deal with the unaligned length.
Such as burst leng 16, ROCKCHIP_SPI_DMARDLR 16, when rx fifo
reaches 16, dma receive 16 bytes. But if the last bytes is less
than 16, dma will miss the bytes left in the rx fifo.

Change-Id: I846db94a87955453e617620ade32f2e68f01c01d
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
drivers/spi/spi-rockchip.c