summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-bcm63xx.c
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-12-17 21:42:07 +0100
committerMark Brown <broonie@linaro.org>2013-12-17 23:34:55 +0100
commit86b3bde003e6bf60ccb9c09b4115b8a2f533974c (patch)
tree05544f2d7f6cd2b5070e8d5aa06281ad5cf376ff /drivers/spi/spi-bcm63xx.c
parentLinux 3.13-rc1 (diff)
downloadlinux-86b3bde003e6bf60ccb9c09b4115b8a2f533974c.tar.xz
linux-86b3bde003e6bf60ccb9c09b4115b8a2f533974c.zip
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/spi-bcm63xx.c')
-rw-r--r--drivers/spi/spi-bcm63xx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c
index 80d56b214eb5..89331cd0ddaa 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 */