Skip to content

Commit 9020b75

Browse files
committed
Merge remote-tracking branch 'spi/topic/msglen' into spi-next
2 parents 84c86ed + 078726c commit 9020b75

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/spi/spi.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1380,6 +1380,7 @@ static int __spi_async(struct spi_device *spi, struct spi_message *message)
13801380
* it is not set for this transfer.
13811381
*/
13821382
list_for_each_entry(xfer, &message->transfers, transfer_list) {
1383+
message->frame_length += xfer->len;
13831384
if (!xfer->bits_per_word)
13841385
xfer->bits_per_word = spi->bits_per_word;
13851386
if (!xfer->speed_hz) {

‎include/linux/spi/spi.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ struct spi_message {
584584
/* completion is reported through a callback */
585585
void (*complete)(void *context);
586586
void *context;
587+
unsigned frame_length;
587588
unsigned actual_length;
588589
int status;
589590

0 commit comments

Comments
 (0)