diff mbox series

spi: mxs: support effective_speed_hz

Message ID 20241209111316.4767-1-wahrenst@gmx.net (mailing list archive)
State Superseded
Headers show
Series spi: mxs: support effective_speed_hz | expand

Commit Message

Stefan Wahren Dec. 9, 2024, 11:13 a.m. UTC
Setting spi_transfer->effective_speed_hz in transfer_one_message so that
SPI client driver can use it.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
---
 drivers/spi/spi-mxs.c | 2 ++
 1 file changed, 2 insertions(+)

--
2.34.1

Comments

Frank Li Dec. 9, 2024, 4:42 p.m. UTC | #1
On Mon, Dec 09, 2024 at 12:13:16PM +0100, Stefan Wahren wrote:
> Setting spi_transfer->effective_speed_hz in transfer_one_message so that
> SPI client driver can use it.

Nit:
s/Setting/Set/

Reviewed-by: Frank Li <Frank.Li@nxp.com>

>
> Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
> ---
>  drivers/spi/spi-mxs.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c
> index e6d955d964f4..43455305fdf4 100644
> --- a/drivers/spi/spi-mxs.c
> +++ b/drivers/spi/spi-mxs.c
> @@ -381,6 +381,8 @@ static int mxs_spi_transfer_one(struct spi_controller *host,
>  		if (status)
>  			break;
>
> +		t->effective_speed_hz = ssp->clk_rate;
> +
>  		/* De-assert on last transfer, inverted by cs_change flag */
>  		flag = (&t->transfer_list == m->transfers.prev) ^ t->cs_change ?
>  		       TXRX_DEASSERT_CS : 0;
> --
> 2.34.1
>
Mark Brown Dec. 10, 2024, 1 p.m. UTC | #2
On Mon, 09 Dec 2024 12:13:16 +0100, Stefan Wahren wrote:
> Setting spi_transfer->effective_speed_hz in transfer_one_message so that
> SPI client driver can use it.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: mxs: support effective_speed_hz
      commit: a17162f0b2dc97aa2dedfde8a7226fb9b5210534

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/drivers/spi/spi-mxs.c b/drivers/spi/spi-mxs.c
index e6d955d964f4..43455305fdf4 100644
--- a/drivers/spi/spi-mxs.c
+++ b/drivers/spi/spi-mxs.c
@@ -381,6 +381,8 @@  static int mxs_spi_transfer_one(struct spi_controller *host,
 		if (status)
 			break;

+		t->effective_speed_hz = ssp->clk_rate;
+
 		/* De-assert on last transfer, inverted by cs_change flag */
 		flag = (&t->transfer_list == m->transfers.prev) ^ t->cs_change ?
 		       TXRX_DEASSERT_CS : 0;