spi: rockchip: modify DMA max burst to 1
authorAddy Ke <addy.ke@rock-chips.com>
Fri, 22 Jan 2016 11:06:52 +0000 (19:06 +0800)
committerVinod Koul <vinod.koul@intel.com>
Tue, 9 Feb 2016 03:31:42 +0000 (09:01 +0530)
commit80abf8880cc6e1594c11b7c417f22dde60e25312
tree60f88bf2b78f95530d3197854b3e2dd8f6ac8e06
parent86a8ce7d4103f6680236af6916abf38e12477df8
spi: rockchip: modify DMA max burst to 1

Generic dma controller on Rockchips' platform cannot support
DMAFLUSHP instruction which make dma to flush the req of non-aligned
or non-multiple of what we need. That will cause an unrecoverable
dma bus error. The saftest way is to set dma max burst to 1.

Signed-off-by: Addy ke <addy.ke@rock-chips.com>
Fixes: 64e36824b32b06 ("spi/rockchip: add driver for Rockchip...")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
cc: Heiko Stuebner <heiko@sntech.de>
cc: Olof Johansson <olof@lixom.net>
cc: Doug Anderson <dianders@chromium.org>
cc: Sonny Rao <sonnyrao@chromium.org>

Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/spi/spi-rockchip.c