]> git.ipfire.org Git - thirdparty/linux.git/commit
spi: cadence-xspi: Add COMPILE_TEST support
authorRosen Penev <rosenp@gmail.com>
Tue, 19 May 2026 00:56:14 +0000 (17:56 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 20 May 2026 14:20:27 +0000 (15:20 +0100)
commit0c5b5c40dc31089e8e59d53a32313baa50bc0809
treef79f30ed6753df61723c6805b1822ecc4fc482b9
parent638f5500111c27379e16a7cf5599f23094bfb7ae
spi: cadence-xspi: Add COMPILE_TEST support

The Cadence XSPI driver uses readq() and writeq(), which are not provided
directly by all 32-bit architectures. Include the generic non-atomic 64-bit
I/O accessor fallback for non-64-bit builds so the driver can build there.

Drop the 64BIT dependency at the same time. The driver only needs MMIO
and the SPI memory interface at build time, and the fallback accessors
cover the 32-bit compile-test case.

Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260519005614.628437-1-rosenp@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/Kconfig
drivers/spi/spi-cadence-xspi.c