Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Akinobu Mita and committed by
Mark Brown
c4e121ae fafd6794

+2 -2
+2 -2
drivers/spi/spi-loopback-test.c
··· 132 132 .fill_option = FILL_COUNT_8, 133 133 .iterate_len = { ITERATE_MAX_LEN }, 134 134 .iterate_tx_align = ITERATE_ALIGN, 135 - .iterate_transfer_mask = BIT(1), 135 + .iterate_transfer_mask = BIT(0), 136 136 .transfers = { 137 137 { 138 138 .len = 1, ··· 149 149 .fill_option = FILL_COUNT_8, 150 150 .iterate_len = { ITERATE_MAX_LEN }, 151 151 .iterate_tx_align = ITERATE_ALIGN, 152 - .iterate_transfer_mask = BIT(0), 152 + .iterate_transfer_mask = BIT(1), 153 153 .transfers = { 154 154 { 155 155 .len = 16,