summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi.c
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-09-01 14:48:58 +0200
committerMark Brown <broonie@linaro.org>2013-09-01 14:48:58 +0200
commit9020b75467ff81b2ae257bbf19acff462854d4ab (patch)
tree42345d07017a00013edd4ee36d718776ee5ceb22 /drivers/spi/spi.c
parentMerge remote-tracking branch 'spi/topic/mpc512x' into spi-next (diff)
parentdriver: spi: Modify core to compute the message length (diff)
downloadlinux-9020b75467ff81b2ae257bbf19acff462854d4ab.tar.xz
linux-9020b75467ff81b2ae257bbf19acff462854d4ab.zip
Merge remote-tracking branch 'spi/topic/msglen' into spi-next
Diffstat (limited to 'drivers/spi/spi.c')
-rw-r--r--drivers/spi/spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 8bc7de019e5d..7ed5c147c073 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -1380,6 +1380,7 @@ static int __spi_async(struct spi_device *spi, struct spi_message *message)
* it is not set for this transfer.
*/
list_for_each_entry(xfer, &message->transfers, transfer_list) {
+ message->frame_length += xfer->len;
if (!xfer->bits_per_word)
xfer->bits_per_word = spi->bits_per_word;
if (!xfer->speed_hz) {