* [PATCH] spi: cadence-xspi: Revert COMPILE_TEST support
@ 2026-06-06 22:26 Nathan Chancellor
2026-06-08 7:50 ` Uwe Kleine-König
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Nathan Chancellor @ 2026-06-06 22:26 UTC (permalink / raw)
To: Mark Brown
Cc: Rosen Penev, Jisheng Zhang, linux-spi, linux-kernel,
Nathan Chancellor
Commit 0c5b5c40dc31 ("spi: cadence-xspi: Add COMPILE_TEST support")
allows this driver to be built for 32-bit platforms, which causes a
semantic conflict with commit 4954d4eca469 ("spi: cadence-xspi: Support
32bit and 64bit slave dma interface"), as readsq() and writesq() are
only available when targeting 64-bit platforms:
drivers/spi/spi-cadence-xspi.c: In function 'cdns_xspi_sdma_read':
drivers/spi/spi-cadence-xspi.c:601:25: error: implicit declaration of function 'readsq'; did you mean 'readsl'? [-Wimplicit-function-declaration]
601 | readsq(src, buf, len >> 3);
| ^~~~~~
| readsl
drivers/spi/spi-cadence-xspi.c: In function 'cdns_xspi_sdma_write':
drivers/spi/spi-cadence-xspi.c:623:25: error: implicit declaration of function 'writesq'; did you mean 'writesl'? [-Wimplicit-function-declaration]
623 | writesq(dst, buf, len >> 3);
| ^~~~~~~
| writesl
As there are no known 32-bit platforms that use this controller, revert
compile testing support to restrict the driver to 64-bit platforms to
avoid burdening the driver with workarounds.
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
---
drivers/spi/Kconfig | 3 +--
drivers/spi/spi-cadence-xspi.c | 4 ----
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 957c3e065b83..8782514bb89b 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -321,8 +321,7 @@ config SPI_CADENCE_QUADSPI
config SPI_CADENCE_XSPI
tristate "Cadence XSPI controller"
- depends on HAS_IOMEM || COMPILE_TEST
- depends on OF
+ depends on OF && HAS_IOMEM && 64BIT
depends on SPI_MEM
help
Enable support for the Cadence XSPI Flash controller.
diff --git a/drivers/spi/spi-cadence-xspi.c b/drivers/spi/spi-cadence-xspi.c
index e2bfb0c78b82..e1b337789fce 100644
--- a/drivers/spi/spi-cadence-xspi.c
+++ b/drivers/spi/spi-cadence-xspi.c
@@ -22,10 +22,6 @@
#include <linux/bitrev.h>
#include <linux/util_macros.h>
-#ifndef CONFIG_64BIT
-#include <linux/io-64-nonatomic-lo-hi.h>
-#endif
-
#define CDNS_XSPI_MAGIC_NUM_VALUE 0x6522
#define CDNS_XSPI_MAX_BANKS 8
#define CDNS_XSPI_NAME "cadence-xspi"
---
base-commit: 4954d4eca469419339452cb5fea26dd0fc678c54
change-id: 20260606-spi-cadence-xspi-revert-compile-testing-7919284daf5f
Best regards,
--
Cheers,
Nathan
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH] spi: cadence-xspi: Revert COMPILE_TEST support
2026-06-06 22:26 [PATCH] spi: cadence-xspi: Revert COMPILE_TEST support Nathan Chancellor
@ 2026-06-08 7:50 ` Uwe Kleine-König
2026-06-08 10:31 ` Mark Brown
2026-06-08 12:18 ` Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Uwe Kleine-König @ 2026-06-08 7:50 UTC (permalink / raw)
To: Nathan Chancellor, Mark Brown
Cc: Rosen Penev, Jisheng Zhang, linux-spi, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1674 bytes --]
Hello,
On Sat, Jun 06, 2026 at 03:26:04PM -0700, Nathan Chancellor wrote:
> Commit 0c5b5c40dc31 ("spi: cadence-xspi: Add COMPILE_TEST support")
> allows this driver to be built for 32-bit platforms, which causes a
> semantic conflict with commit 4954d4eca469 ("spi: cadence-xspi: Support
> 32bit and 64bit slave dma interface"), as readsq() and writesq() are
> only available when targeting 64-bit platforms:
>
> drivers/spi/spi-cadence-xspi.c: In function 'cdns_xspi_sdma_read':
> drivers/spi/spi-cadence-xspi.c:601:25: error: implicit declaration of function 'readsq'; did you mean 'readsl'? [-Wimplicit-function-declaration]
> 601 | readsq(src, buf, len >> 3);
> | ^~~~~~
> | readsl
> drivers/spi/spi-cadence-xspi.c: In function 'cdns_xspi_sdma_write':
> drivers/spi/spi-cadence-xspi.c:623:25: error: implicit declaration of function 'writesq'; did you mean 'writesl'? [-Wimplicit-function-declaration]
> 623 | writesq(dst, buf, len >> 3);
> | ^~~~~~~
> | writesl
>
> As there are no known 32-bit platforms that use this controller, revert
> compile testing support to restrict the driver to 64-bit platforms to
> avoid burdening the driver with workarounds.
Given this fixes a build failure in next and we're at -rc7 already, it
would be great to get this in.
Fixes: 4954d4eca469 ("spi: cadence-xspi: Support 32bit and 64bit slave dma interface")
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Thanks for preparing the patch
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] spi: cadence-xspi: Revert COMPILE_TEST support
2026-06-06 22:26 [PATCH] spi: cadence-xspi: Revert COMPILE_TEST support Nathan Chancellor
2026-06-08 7:50 ` Uwe Kleine-König
@ 2026-06-08 10:31 ` Mark Brown
2026-06-08 18:09 ` Nathan Chancellor
2026-06-08 12:18 ` Mark Brown
2 siblings, 1 reply; 5+ messages in thread
From: Mark Brown @ 2026-06-08 10:31 UTC (permalink / raw)
To: Nathan Chancellor; +Cc: Rosen Penev, Jisheng Zhang, linux-spi, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]
On Sat, Jun 06, 2026 at 03:26:04PM -0700, Nathan Chancellor wrote:
> Commit 0c5b5c40dc31 ("spi: cadence-xspi: Add COMPILE_TEST support")
> allows this driver to be built for 32-bit platforms, which causes a
> semantic conflict with commit 4954d4eca469 ("spi: cadence-xspi: Support
> 32bit and 64bit slave dma interface"), as readsq() and writesq() are
> only available when targeting 64-bit platforms:
> config SPI_CADENCE_XSPI
> tristate "Cadence XSPI controller"
> - depends on HAS_IOMEM || COMPILE_TEST
> - depends on OF
> + depends on OF && HAS_IOMEM && 64BIT
> depends on SPI_MEM
Why combine all these, they're not obviously related and HAS_IOMEM can
be turned off.
> help
> Enable support for the Cadence XSPI Flash controller.
> diff --git a/drivers/spi/spi-cadence-xspi.c b/drivers/spi/spi-cadence-xspi.c
> index e2bfb0c78b82..e1b337789fce 100644
> --- a/drivers/spi/spi-cadence-xspi.c
> +++ b/drivers/spi/spi-cadence-xspi.c
> @@ -22,10 +22,6 @@
> #include <linux/bitrev.h>
> #include <linux/util_macros.h>
>
> -#ifndef CONFIG_64BIT
> -#include <linux/io-64-nonatomic-lo-hi.h>
> -#endif
> -
> #define CDNS_XSPI_MAGIC_NUM_VALUE 0x6522
> #define CDNS_XSPI_MAX_BANKS 8
> #define CDNS_XSPI_NAME "cadence-xspi"
>
> ---
> base-commit: 4954d4eca469419339452cb5fea26dd0fc678c54
> change-id: 20260606-spi-cadence-xspi-revert-compile-testing-7919284daf5f
>
> Best regards,
> --
> Cheers,
> Nathan
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH] spi: cadence-xspi: Revert COMPILE_TEST support
2026-06-08 10:31 ` Mark Brown
@ 2026-06-08 18:09 ` Nathan Chancellor
0 siblings, 0 replies; 5+ messages in thread
From: Nathan Chancellor @ 2026-06-08 18:09 UTC (permalink / raw)
To: Mark Brown; +Cc: Rosen Penev, Jisheng Zhang, linux-spi, linux-kernel
On Mon, Jun 08, 2026 at 11:31:33AM +0100, Mark Brown wrote:
> On Sat, Jun 06, 2026 at 03:26:04PM -0700, Nathan Chancellor wrote:
> > Commit 0c5b5c40dc31 ("spi: cadence-xspi: Add COMPILE_TEST support")
> > allows this driver to be built for 32-bit platforms, which causes a
> > semantic conflict with commit 4954d4eca469 ("spi: cadence-xspi: Support
> > 32bit and 64bit slave dma interface"), as readsq() and writesq() are
> > only available when targeting 64-bit platforms:
>
> > config SPI_CADENCE_XSPI
> > tristate "Cadence XSPI controller"
> > - depends on HAS_IOMEM || COMPILE_TEST
> > - depends on OF
> > + depends on OF && HAS_IOMEM && 64BIT
> > depends on SPI_MEM
>
> Why combine all these, they're not obviously related and HAS_IOMEM can
> be turned off.
This is just a straight revert of 0c5b5c40dc31, so it is just restoring
how it was before that change.
--
Cheers,
Nathan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] spi: cadence-xspi: Revert COMPILE_TEST support
2026-06-06 22:26 [PATCH] spi: cadence-xspi: Revert COMPILE_TEST support Nathan Chancellor
2026-06-08 7:50 ` Uwe Kleine-König
2026-06-08 10:31 ` Mark Brown
@ 2026-06-08 12:18 ` Mark Brown
2 siblings, 0 replies; 5+ messages in thread
From: Mark Brown @ 2026-06-08 12:18 UTC (permalink / raw)
To: Nathan Chancellor; +Cc: Rosen Penev, Jisheng Zhang, linux-spi, linux-kernel
On Sat, 06 Jun 2026 15:26:04 -0700, Nathan Chancellor wrote:
> spi: cadence-xspi: Revert COMPILE_TEST support
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-7.2
Thanks!
[1/1] spi: cadence-xspi: Revert COMPILE_TEST support
https://git.kernel.org/broonie/spi/c/2fb242e4f375
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-06-08 18:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-06 22:26 [PATCH] spi: cadence-xspi: Revert COMPILE_TEST support Nathan Chancellor
2026-06-08 7:50 ` Uwe Kleine-König
2026-06-08 10:31 ` Mark Brown
2026-06-08 18:09 ` Nathan Chancellor
2026-06-08 12:18 ` Mark Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.