diff mbox

spi: loopback: match configuration of test to description

Message ID 1449999901-2288-1-git-send-email-kernel@martin.sperl.org (mailing list archive)
State Accepted
Commit fc8773e195350c61e61cc354b1535fb2c09a29f3
Headers show

Commit Message

Martin Sperl Dec. 13, 2015, 9:45 a.m. UTC
From: Martin Sperl <kernel@martin.sperl.org>

The test "two tx+rx transfers - alter second" actually modifies
the first not the second transfer, which - in conjunction with
testing the read data - results also in overwriting data read
earlier.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
---
 drivers/spi/spi-loopback-test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c
index db20736..facef7a 100644
--- a/drivers/spi/spi-loopback-test.c
+++ b/drivers/spi/spi-loopback-test.c
@@ -260,7 +260,7 @@  static struct spi_test spi_tests[] = {
 		.fill_option	= FILL_COUNT_8,
 		.iterate_len    = { ITERATE_MAX_LEN },
 		.iterate_tx_align = ITERATE_ALIGN,
-		.iterate_transfer_mask = BIT(0),
+		.iterate_transfer_mask = BIT(1),
 		.transfers		= {
 			{
 				.len = 1,