| From | Greg Kroah-Hartman <> | Subject | [PATCH 3.10 27/79] spi/bcm63xx: dont substract prepend length from total length | Date | Tue, 11 Feb 2014 11:05:31 -0800 |
| |
3.10-stable review patch. If anyone has any objections, please let me know.
------------------
From: Jonas Gorski <jogo@openwrt.org>
commit 86b3bde003e6bf60ccb9c09b4115b8a2f533974c upstream.
The spi command must include the full message length including any prepended writes, else transfers larger than 256 bytes will be incomplete.
Signed-off-by: Jonas Gorski <jogo@openwrt.org> Acked-by: Florian Fainelli <florian@openwrt.org> Signed-off-by: Mark Brown <broonie@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
--- drivers/spi/spi-bcm63xx.c | 2 -- 1 file changed, 2 deletions(-)
--- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -180,8 +180,6 @@ static int bcm63xx_txrx_bufs(struct spi_ transfer_list); } - len -= prepend_len; - init_completion(&bs->done); /* Fill in the Message control register */
|