diff options
author | Vignesh Raghavendra <vigneshr@ti.com> | 2020-02-04 18:18:15 +0530 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-02-06 15:53:40 +0000 |
commit | e4e8276a4f652be2c7bb783a0155d4adb85f5d7d (patch) | |
tree | 7db6e01f72ead94784ed17b0da28592968ac3097 /include/linux/platform_data | |
parent | a5362b84bdff1def10c136e36ef2126f7f545b2c (diff) |
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>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r-- | include/linux/platform_data/spi-omap2-mcspi.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/platform_data/spi-omap2-mcspi.h b/include/linux/platform_data/spi-omap2-mcspi.h index 0bf9fddb8306..3b400b1919a9 100644 --- a/include/linux/platform_data/spi-omap2-mcspi.h +++ b/include/linux/platform_data/spi-omap2-mcspi.h @@ -11,6 +11,7 @@ struct omap2_mcspi_platform_config { unsigned short num_cs; unsigned int regs_offset; unsigned int pin_dir:1; + size_t max_xfer_len; }; struct omap2_mcspi_device_config { |