projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8916671
)
spi: loopback-test: test zero-length transfer
author
Akinobu Mita
<akinobu.mita@gmail.com>
Fri, 17 Mar 2017 18:17:29 +0000
(
03:17
+0900)
committer
Mark Brown
<broonie@kernel.org>
Fri, 17 Mar 2017 21:54:05 +0000
(21:54 +0000)
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>
drivers/spi/spi-test.h
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-test.h
b/drivers/spi/spi-test.h
index
2dd5691
..
82fff4a
100644
(file)
--- a/
drivers/spi/spi-test.h
+++ b/
drivers/spi/spi-test.h
@@
-124,7
+124,7
@@
int spi_test_execute_msg(struct spi_device *spi,
int spi_test_run_tests(struct spi_device *spi,
struct spi_test *tests);
-#define ITERATE_LEN_LIST 1, 2, 3, 7, 11, 16, 31, 32, 64, 97, 128, 251, 256, \
+#define ITERATE_LEN_LIST
0,
1, 2, 3, 7, 11, 16, 31, 32, 64, 97, 128, 251, 256, \
1021, 1024, 1031, 4093, PAGE_SIZE, 4099, 65536, 65537
/* some of the default @spi_transfer.len to test, terminated by a -1 */
#define ITERATE_LEN ITERATE_LEN_LIST, -1