]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
spi: loopback-test: write rx pattern also when running without tx_buf
authorMartin Sperl <kernel@martin.sperl.org>
Tue, 22 Dec 2015 18:03:21 +0000 (18:03 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 5 Jan 2016 19:05:23 +0000 (19:05 +0000)
commite6520a3c8877d02c471135afb371e79b04409ab8
tree8bb9ea2c10d7a4b5e53efaee617cb00e0e93c066
parent739f3e92916b6076afbfc3b524ec120468478035
spi: loopback-test: write rx pattern also when running without tx_buf

Currently the rx_buf does not get set with the
SPI_TEST_PATTERN_UNWRITTEN when tx_buf == NULL in the transfer.

Reorder code so that it gets done also under this specific condition.

Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-loopback-test.c