From: Frank Li <Frank.li@nxp.com>
To: Stefan Wahren <wahrenst@gmx.net>
Cc: Mark Brown <broonie@kernel.org>, Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
linux-spi@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] spi: mxs: support effective_speed_hz
Date: Mon, 9 Dec 2024 11:42:13 -0500 [thread overview]
Message-ID: <Z1cd5ZcU2xTeemZH@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <20241209111316.4767-1-wahrenst@gmx.net>
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
>
next prev parent reply other threads:[~2024-12-09 16:43 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-09 11:13 [PATCH] spi: mxs: support effective_speed_hz Stefan Wahren
2024-12-09 16:42 ` Frank Li [this message]
2024-12-10 13:00 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z1cd5ZcU2xTeemZH@lizhi-Precision-Tower-5810 \
--to=frank.li@nxp.com \
--cc=broonie@kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-spi@vger.kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=wahrenst@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox