aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2013-12-17 15:42:07 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-13 16:48:01 -0500
commitd12825478189af51a0feb66744700bfbee257a25 (patch)
tree12ab1f0ec96a970a26b6ac3c743bfb6d81f3585d /drivers/spi
parent5509a949855b0d0b4a3a12be431aa2f069ac8330 (diff)
spi/bcm63xx: don't substract prepend length from total length
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>
Diffstat (limited to 'drivers/spi')
-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 a4ec5f4ec817..cd716f4cd37f 100644
--- a/drivers/spi/spi-bcm63xx.c
+++ b/drivers/spi/spi-bcm63xx.c
@@ -180,8 +180,6 @@ static int bcm63xx_txrx_bufs(struct spi_device *spi, struct spi_transfer *first,
180 transfer_list); 180 transfer_list);
181 } 181 }
182 182
183 len -= prepend_len;
184
185 init_completion(&bs->done); 183 init_completion(&bs->done);
186 184
187 /* Fill in the Message control register */ 185 /* Fill in the Message control register */