]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-sun6i: sun6i_spi_transfer_one(): report effectivly used speed_hz of transfer
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 6 Jul 2020 14:34:35 +0000 (16:34 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 7 Jul 2020 09:41:33 +0000 (10:41 +0100)
commitc8a30037e31ca9628842c4778acf0a4bce390b3c
tree080b506a6a1a3b88b123a3f6a0ef57832ae8267b
parentdc6131431e5d111ef5e71fc9c9b490d127aa8e9f
spi: spi-sun6i: sun6i_spi_transfer_one(): report effectivly used speed_hz of transfer

This patch implementes the reporting of the effectivly used speed_hz for the
transfer by setting tfr->effective_speed_hz.

See the following patch, which adds this feature to the SPI core for more
information:

    2a9d02d57b95 spi: core: allow reporting the effectivly used speed_hz for a transfer

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Acked-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/r/20200706143443.9855-3-mkl@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sun6i.c