From: Jonas Gorski Date: Tue, 17 Dec 2013 20:42:07 +0000 (+0100) Subject: spi/bcm63xx: don't substract prepend length from total length X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86b3bde003e6bf60ccb9c09b4115b8a2f533974c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Acked-by: Florian Fainelli Signed-off-by: Mark Brown Cc: stable@vger.kernel.org --- 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 */