spi: spidev_test: add option to continuously transfer data
authorFrode Isaksen <fisaksen@baylibre.com>
Tue, 21 Mar 2017 15:48:46 +0000 (16:48 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 21 Mar 2017 18:44:40 +0000 (18:44 +0000)
commit9006a7b3220e7293ef8bc1ac9bba6c54411051c1
tree1f012b8ffd8d3f47f39e4da7b1f1b9b17a44e09c
parentfafd67940774733fa97f4b09412aea6981b82e0a
spi: spidev_test: add option to continuously transfer data

Add option to send+recv <size> bytes with <iter> iterations
and show the transfer rate every 5 seconds.
Example:
rate: tx 4235.2kbps, rx 4235.2kbps
total: tx 4882.8KB, rx 4882.8KB

Signed-off-by: Frode Isaksen <fisaksen@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
tools/spi/spidev_test.c