Re: [PATCH] spi: mxs: support effective_speed_hz

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>

>
> Signed-off-by: Stefan Wahren <wahrenst@xxxxxxx>
> ---
>  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
>




[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux