]> git.baikalelectronics.ru Git - kernel.git/commit
spi/pxa2xx: change default supported DMA burst size to 1
authorChew, Chiau Ee <chiau.ee.chew@intel.com>
Thu, 5 Jun 2014 17:45:09 +0000 (01:45 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 6 Jun 2014 09:52:46 +0000 (10:52 +0100)
commit0c7cb173fc66ce1f57d6f6b7bdba6cf6ed7a80e1
tree822fc44ae1a02faa2f5994c1a4c6b89ddd666ef0
parenteb8ba63e5111f75cc5c3ee8fc34f383640b8d83a
spi/pxa2xx: change default supported DMA burst size to 1

This is to fix the SPI DMA transfer failure for speed less than 1M.
If using current DMA burst size setting (16), the Rx data bytes are
invalid due to each data byte is multiplied according to the burst
size setting.

Let's said supposedly we shall receive the following 18 bytes of data:
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18
Instead, the data bytes received consist of "16 bytes of '01' +
2 bytes of '02'" :
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 02 02

Signed-off-by: Chew, Chiau Ee <chiau.ee.chew@intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-pxa2xx-dma.c