Unverified Commit a4f8e70d authored by Tianyu Xu's avatar Tianyu Xu Committed by Mark Brown
Browse files

spi: spi-mem: add spi_mem_adjust_op_freq() in spi_mem_supports_op()



The function spi_mem_adjust_op_freq() within spi_mem_exec_op() adjusts
the op->max_freq, which will informs the SPI controller of the maximum
frequency for each operation. This adjustment is based on combined
information from the SPI device and the board's wiring conditions.
Similarly, spi_mem_supports_op() will check the capabilities of the SPI
controller. It also requires the combined information before it can
accurately determine whether the SPI controller supports a given operation.

Signed-off-by: default avatarTianyu Xu <tianyxu@cisco.com>
Reviewed-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://patch.msgid.link/20250805015403.43928-1-tianyxu@cisco.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 72332439
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment