]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx: Setup maximum supported DMA transfer length
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 19 Feb 2019 20:21:28 +0000 (23:21 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 20 Feb 2019 17:14:14 +0000 (17:14 +0000)
commitd6cca562b933cb22dd319462dad8d81e8528564d
tree51cea54a7a78747e6af42382232037a8ec12ce30
parentd77625a3b691b0aeb53745a6dd19bcfd49bec3f3
spi: pxa2xx: Setup maximum supported DMA transfer length

When the commit 323454b444c9

   ("spi: pxa2xx: Switch to SPI core DMA mapping functionality")

switches to SPI core provided DMA helpers, it missed to setup maximum
supported DMA transfer length for the controller and thus users
mistakenly try to send more data than supported with the following
warning:

  ili9341 spi-PRP0001:01: DMA disabled for transfer length 153600 greater than 65536

Setup maximum supported DMA transfer length in order to make users know
the limit.

Fixes: 323454b444c9 ("spi: pxa2xx: Switch to SPI core DMA mapping functionality")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-pxa2xx.c