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

spi: loopback-test: test zero-length transfer

In order to test various spi_messages including zero-length transfer,
this adds zero length into the iterate_len list.

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
0bd7fda5 8916671e

+1 -1
+1 -1
drivers/spi/spi-test.h
··· 124 124 int spi_test_run_tests(struct spi_device *spi, 125 125 struct spi_test *tests); 126 126 127 - #define ITERATE_LEN_LIST 1, 2, 3, 7, 11, 16, 31, 32, 64, 97, 128, 251, 256, \ 127 + #define ITERATE_LEN_LIST 0, 1, 2, 3, 7, 11, 16, 31, 32, 64, 97, 128, 251, 256, \ 128 128 1021, 1024, 1031, 4093, PAGE_SIZE, 4099, 65536, 65537 129 129 /* some of the default @spi_transfer.len to test, terminated by a -1 */ 130 130 #define ITERATE_LEN ITERATE_LEN_LIST, -1