[3.11.y.z extended stable] Patch "spi/bcm63xx: don't substract prepend length from total length" has been added to staging queue

Luis Henriques luis.henriques at canonical.com
Wed Feb 5 13:12:01 UTC 2014


This is a note to let you know that I have just added a patch titled

    spi/bcm63xx: don't substract prepend length from total length

to the linux-3.11.y-queue branch of the 3.11.y.z extended stable tree 
which can be found at:

 http://kernel.ubuntu.com/git?p=ubuntu/linux.git;a=shortlog;h=refs/heads/linux-3.11.y-queue

If you, or anyone else, feels it should not be added to this tree, please 
reply to this email.

For more information about the 3.11.y.z tree, see
https://wiki.ubuntu.com/Kernel/Dev/ExtendedStable

Thanks.
-Luis

------

>From b7f14da157f1ee69fcfd4d251d7898e844b64269 Mon Sep 17 00:00:00 2001
From: Jonas Gorski <jogo at openwrt.org>
Date: Tue, 17 Dec 2013 21:42:07 +0100
Subject: 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 at openwrt.org>
Acked-by: Florian Fainelli <florian at openwrt.org>
Signed-off-by: Mark Brown <broonie at linaro.org>
Signed-off-by: Luis Henriques <luis.henriques at canonical.com>
---
 drivers/spi/spi-bcm63xx.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c
index 9fd7a39..49c21cd 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 */
--
1.8.3.2





More information about the kernel-team mailing list