diff options
author | Jonas Gorski <jogo@openwrt.org> | 2013-12-17 20:42:07 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-12-17 22:34:55 (GMT) |
commit | 86b3bde003e6bf60ccb9c09b4115b8a2f533974c (patch) | |
tree | 05544f2d7f6cd2b5070e8d5aa06281ad5cf376ff /drivers/spi | |
parent | 6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff) | |
download | linux-86b3bde003e6bf60ccb9c09b4115b8a2f533974c.tar.xz |
spi/bcm63xx: don't substract prepend length from total length
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>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index 80d56b2..89331cd 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -169,8 +169,6 @@ static int bcm63xx_txrx_bufs(struct spi_device *spi, struct spi_transfer *first, transfer_list); } - len -= prepend_len; - init_completion(&bs->done); /* Fill in the Message control register */ |