From: Mark Brown Date: Sun, 2 Dec 2012 03:54:25 +0000 (+0900) Subject: spi: Remove SPI_BUFSIZ restriction on spi_write_then_read() X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~24^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3a223ee2d1a4635b0643c547bc0096a37334ed1;p=pandora-kernel.git 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 Signed-off-by: Grant Likely --- Reading git-diff-tree failed