diff options
author | Akinobu Mita <akinobu.mita@gmail.com> | 2017-03-18 03:17:30 +0900 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-03-17 21:54:08 +0000 |
commit | ea9936f32435699907807aaac87f993482208578 (patch) | |
tree | 00bc559c0f00d049e1ee69732634ad0a6303f1ff /drivers/spi/spi-test.h | |
parent | 0bd7fda56b94002d9985040c02bb701956fa657e (diff) | |
download | blackbird-op-linux-ea9936f32435699907807aaac87f993482208578.tar.gz blackbird-op-linux-ea9936f32435699907807aaac87f993482208578.zip |
spi: loopback-test: add elapsed time check
This adds checks whether the elapsed time is longer than the minimam
estimated time. The estimated time is calculated with the total
transfer length per clock rate and optional spi_transfer.delay_usecs.
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-test.h')
-rw-r--r-- | drivers/spi/spi-test.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spi-test.h b/drivers/spi/spi-test.h index 82fff4a0fd94..6ed7b899da8a 100644 --- a/drivers/spi/spi-test.h +++ b/drivers/spi/spi-test.h @@ -75,6 +75,7 @@ * @fill_option: define the way how tx_buf is filled * @fill_pattern: fill pattern to apply to the tx_buf * (used in some of the @fill_options) + * @elapsed_time: elapsed time in nanoseconds */ struct spi_test { @@ -108,6 +109,7 @@ struct spi_test { #define FILL_TRANSFER_BYTE_32 11 /* fill with the transfer byte - 32 bit */ #define FILL_TRANSFER_NUM 16 /* fill with the transfer number */ u32 fill_pattern; + unsigned long long elapsed_time; }; /* default implementation for @spi_test.run_test */ |