spi: spi-omap2-mcspi: Handle DMA size restriction on AM65x
authorVignesh Raghavendra <vigneshr@ti.com>
Tue, 4 Feb 2020 12:48:15 +0000 (18:18 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 6 Feb 2020 15:53:40 +0000 (15:53 +0000)
commite4e8276a4f652be2c7bb783a0155d4adb85f5d7d
tree7db6e01f72ead94784ed17b0da28592968ac3097
parenta5362b84bdff1def10c136e36ef2126f7f545b2c
spi: spi-omap2-mcspi: Handle DMA size restriction on AM65x

On AM654, McSPI can only support 4K - 1 bytes per transfer when DMA is
enabled. Therefore populate master->max_transfer_size callback to
inform client drivers of this restriction when DMA channels are
available.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Link: https://lore.kernel.org/r/20200204124816.16735-2-vigneshr@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-omap2-mcspi.c
include/linux/platform_data/spi-omap2-mcspi.h