]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit6667e3c267dc30c10d89051051d92fd75154bb03
tree579e0191ba95903c75223edb0c2012094b4dba87
parent22ebd13c317f70ba704ea64250db05b77102c6c6
spi: pxa2xx: Setup maximum supported DMA transfer length

BugLink: https://bugs.launchpad.net/bugs/1837952
commit ef070b4e4aa25bb5f8632ad196644026c11903bf upstream.

When the commit b6ced294fb61

   ("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: b6ced294fb61 ("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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/spi/spi-pxa2xx.c