]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
spi: loopback-test: add elapsed time check
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 17 Mar 2017 18:17:30 +0000 (03:17 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 17 Mar 2017 21:54:08 +0000 (21:54 +0000)
commitea9936f32435699907807aaac87f993482208578
tree00bc559c0f00d049e1ee69732634ad0a6303f1ff
parent0bd7fda56b94002d9985040c02bb701956fa657e
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>
drivers/spi/spi-loopback-test.c
drivers/spi/spi-test.h