mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 21:23:23 +00:00
spi: mxs: support effective_speed_hz
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> Link: https://patch.msgid.link/20241209111316.4767-1-wahrenst@gmx.net Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
8332e66709
commit
a17162f0b2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user