summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-loopback-test.c
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2017-03-17 19:17:26 +0100
committerMark Brown <broonie@kernel.org>2017-03-17 22:53:53 +0100
commitc4e121aeb754f1ac5f2bcc791aa4177dcfb3b401 (patch)
tree46daa7e54f2d909257432d1e09ee4956e4d424cf /drivers/spi/spi-loopback-test.c
parentMerge remote-tracking branches 'spi/topic/spidev', 'spi/topic/sunxi', 'spi/to... (diff)
downloadlinux-c4e121aeb754f1ac5f2bcc791aa4177dcfb3b401.tar.xz
linux-c4e121aeb754f1ac5f2bcc791aa4177dcfb3b401.zip
spi: loopback-test: correct mismatched test description and configuration
The test "two tx-transfers - alter first" actually alters the second not the first transfer. Similarly the test "two tx-transfers - alter second" actually alters the first not the second transfer. The mismatches for the two symmetrical tests cancel each other's mistakes. But it's better to fix the mismatches to avoid confusion. Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-loopback-test.c b/drivers/spi/spi-loopback-test.c
index 50e620f4e8fe..99422f3a15e0 100644
--- a/drivers/spi/spi-loopback-test.c
+++ b/drivers/spi/spi-loopback-test.c
@@ -132,7 +132,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(1),
+ .iterate_transfer_mask = BIT(0),
.transfers = {
{
.len = 1,
@@ -149,7 +149,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 = 16,