summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-loopback-test.c
diff options
context:
space:
mode:
authorMartin Sperl <kernel@martin.sperl.org>2015-12-13 12:45:01 +0300
committerMark Brown <broonie@kernel.org>2015-12-13 23:10:14 +0300
commitfc8773e195350c61e61cc354b1535fb2c09a29f3 (patch)
tree423123bcd3e1d98cbb0a0b2c897aae91dfd71c56 /drivers/spi/spi-loopback-test.c
parentd58b9fda129d7f75358a36b71ec5cc685b4f993e (diff)
downloadlinux-fc8773e195350c61e61cc354b1535fb2c09a29f3.tar.xz
spi: loopback: match configuration of test to description
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>
Diffstat (limited to 'drivers/spi/spi-loopback-test.c')
-rw-r--r--drivers/spi/spi-loopback-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c
index 4481ac766029..7f497acc906c 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,