summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-sh-msiof.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-12-02 03:54:25 (GMT)
committerGrant Likely <grant.likely@secretlab.ca>2012-12-06 14:03:14 (GMT)
commitb3a223ee2d1a4635b0643c547bc0096a37334ed1 (patch)
tree0b0e7891825af66e8ecfdc6e3f14bbf2b1941991 /drivers/spi/spi-sh-msiof.c
parent266904c77911fdc0a064d97e2f06034b824c23ac (diff)
downloadlinux-b3a223ee2d1a4635b0643c547bc0096a37334ed1.tar.xz
spi: Remove SPI_BUFSIZ restriction on spi_write_then_read()
In order to avoid constantly allocating and deallocating there is a fixed buffer which spi_write_then_read() uses for transfers, with an early error check to ensure that the transfer fits within the buffer. This limits the size of transfers to this size, currently max(32, SMP_CACHE_BYTES). Since we can dynamically allocate and in fact already have a fallback to do so when there is contention for the fixed buffer remove this restriction and instead dynamically allocate a suitably sized buffer if the transfer won't fit. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/spi/spi-sh-msiof.c')
0 files changed, 0 insertions, 0 deletions