> 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@xxxxxxxxxxxxx> > Reviewed-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxxxxx> > --- > drivers/spi/spi-atmel.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c > index 2cfe6253a784..799229bc34e1 100644 > --- a/drivers/spi/spi-atmel.c > +++ b/drivers/spi/spi-atmel.c > @@ -859,6 +859,7 @@ static int atmel_spi_set_xfer_speed(struct > atmel_spi *as, > csr = spi_readl(as, CSR0 + 4 * chip_select); > csr = SPI_BFINS(SCBR, scbr, csr); > spi_writel(as, CSR0 + 4 * chip_select, csr); > + xfer->effective_speed_hz = bus_hz / scbr; > > return 0; > } > -- > 2.25.1 Hi Mark, I realized I only sent this to the list, not to you on to/cc. Can you consider pulling this please? Thanks, Thomas