Verified Commit 2a9d92fb authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Mark Brown
Browse files

mtd: atmel-quadspi: disallow building on ebsa110

I ran into a link-time error with the atmel-quadspi driver on the
EBSA110 platform:

drivers/mtd/built-in.o: In function `atmel_qspi_run_command':
:(.text+0x1ee3c): undefined reference to `_memcpy_toio'
:(.text+0x1ee48): undefined reference to `_memcpy_fromio'

The problem is that _memcpy_toio/_memcpy_fromio are not available on
that platform, and we have to prevent building the driver there.

In case we want to backport this to older kernels: between linux-4.8
and linux-4.20, the Kconfig entry was in drivers/mtd/spi-nor/Kconfig
but had the same problem.

Fixes: 161aaab8

 ("mtd: atmel-quadspi: add driver for Atmel QSPI controller")
Signed-off-by: default avatarArnd Bergmann <>
Reviewed-by: default avatarBoris Brezillon <>
Signed-off-by: Mark Brown's avatarMark Brown <>
parent a24626d7
......@@ -93,7 +93,7 @@ config SPI_AT91_USART
tristate "Atmel Quad SPI Controller"
depends on ARCH_AT91 || (ARM && COMPILE_TEST)
depends on ARCH_AT91 || (ARM && COMPILE_TEST && !ARCH_EBSA110)
depends on OF && HAS_IOMEM
This enables support for the Quad SPI controller in master mode.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment