]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: imx: remove CLK calculation and check for target mode
authorClark Wang <xiaoning.wang@nxp.com>
Fri, 24 Oct 2025 05:52:11 +0000 (13:52 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 6 Nov 2025 13:15:14 +0000 (13:15 +0000)
commit55d03b5b5bdd04daf9a35ce49db18d8bb488dffb
treeb55cefc2f1f1f818804acb00eccfe069e0b22c90
parent2f538ef9f6f7c3d700c68536f21447dfc598f8c8
spi: imx: remove CLK calculation and check for target mode

In target mode, the clock signal is controlled by the master. Target does
not need to check, calculate and configure the clock frequency division.
The target can directly use the root clock to sample the SCL signal.

Therefore, remove check, calculation and frequency division function of
the clock for target mode.

Signed-off-by: Carlos Song <carlos.song@nxp.com>
Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20251024055211.408440-1-carlos.song@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-imx.c