spi: loopback: match configuration of test to description
authorMartin Sperl <kernel@martin.sperl.org>
Sun, 13 Dec 2015 09:45:01 +0000 (09:45 +0000)
committerMark Brown <broonie@kernel.org>
Sun, 13 Dec 2015 20:10:14 +0000 (20:10 +0000)
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>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-loopback-test.c

index 4481ac7660295879f4b3aa42640afcbdd0aa168a..7f497acc906ce020916f768e9af5efac9d003987 100644 (file)
@@ -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,