OSDN Git Service

spi: atmel: Exposing effective spi speed
authorThomas Kopp <thomas.kopp@microchip.com>
Mon, 21 Sep 2020 07:10:36 +0000 (09:10 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 1 Oct 2020 22:45:26 +0000 (23:45 +0100)
commit23f370c748580643d17b5e064478b89cba3fdc78
treec5410cd122078fd750292bf5778728ba7db6d500
parent9d3621525018dbff2795e2bab17572fd20431234
spi: atmel: Exposing effective spi speed

This patch implements the reporting of the effectively used speed_hz for
the transfer by setting xfer->effective_speed_hz.

See the following patch, which adds this feature to the SPI core for more
information:
commit 5d7e2b5ed585 ("spi: core: allow reporting the effectivly used speed_hz for a transfer")

Signed-off-by: Thomas Kopp <thomas.kopp@microchip.com>
Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Link: https://lore.kernel.org/r/20200921071036.2091-1-thomas.kopp@microchip.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c