spi: expose master transfer size limitation.
authorMichal Suchanek <hramrach@gmail.com>
Wed, 2 Dec 2015 10:38:21 +0000 (10:38 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jan 2016 16:33:54 +0000 (16:33 +0000)
commit4acad4aae10d1fa79a075b38b5c73772c44f576c
treed0da2a97d6a1f6dec994c0c303feeab11154dac7
parent8005c49d9aea74d382f474ce11afbbc7d7130bec
spi: expose master transfer size limitation.

On some SPI controllers it is not feasible to transfer arbitrary amount
of data at once.

When the limit on transfer size is a few kilobytes at least it makes
sense to use the SPI hardware rather than reverting to gpio driver.

The protocol drivers need a way to check that they do not sent overly
long messages, though.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/spi/spi.h