[PATCH v2 1/3] nvmem: add missing HAS_IOMEM depends on some drivers

From: Link Mauve

Date: Mon Oct 12 2026 - 17:12:18 EST


At least these three drivers access MMIO and weren’t depending on
HAS_IOMEM, which could cause them to fail to build with COMPILE_TEST on
architectures without MMIO support.

Signed-off-by: Link Mauve <linkmauve@xxxxxxxxxxxx>
---
drivers/nvmem/Kconfig | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
index 083a5e528960..e614d56ff7a8 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -303,6 +303,7 @@ config NVMEM_MESON_EFUSE
config NVMEM_MESON_MX_EFUSE
tristate "Amlogic Meson6/Meson8/Meson8b eFuse Support"
depends on ARCH_MESON || COMPILE_TEST
+ depends on HAS_IOMEM
help
This is a driver to retrieve specific values from the eFuse found on
the Amlogic Meson6, Meson8 and Meson8b SoCs.
@@ -313,6 +314,7 @@ config NVMEM_MESON_MX_EFUSE
config NVMEM_MICROCHIP_OTPC
tristate "Microchip OTPC support"
depends on ARCH_AT91 || COMPILE_TEST
+ depends on HAS_IOMEM
help
This driver enable the OTP controller available on Microchip SAMA7G5
SoCs. It controls the access to the OTP memory connected to it.
@@ -354,6 +356,7 @@ config NVMEM_MXS_OCOTP
config NVMEM_NINTENDO_OTP
tristate "Nintendo Wii and Wii U OTP Support"
depends on WII || COMPILE_TEST
+ depends on HAS_IOMEM
help
This is a driver exposing the OTP of a Nintendo Wii or Wii U console.

@@ -366,6 +369,7 @@ config NVMEM_NINTENDO_OTP
config NVMEM_S32G_OCOTP
tristate "S32G SoC OCOTP support"
depends on ARCH_S32
+ depends on HAS_IOMEM
help
This is a driver for the 'OCOTP' peripheral available on S32G
platforms.
@@ -415,6 +419,7 @@ config NVMEM_RAVE_SP_EEPROM
config NVMEM_RCAR_EFUSE
tristate "Renesas R-Car Gen4 E-FUSE support"
depends on (ARCH_RENESAS && ARM64) || COMPILE_TEST
+ depends on HAS_IOMEM
help
Enable support for reading the fuses in the E-FUSE or OTP
non-volatile memory block on Renesas R-Car Gen4 SoCs.
@@ -508,6 +513,7 @@ config NVMEM_STM32_ROMEM
tristate "STMicroelectronics STM32 factory-programmed memory support"
depends on ARCH_STM32 || COMPILE_TEST
depends on OPTEE || !OPTEE
+ depends on HAS_IOMEM
help
Say y here to enable read-only access for STMicroelectronics STM32
factory-programmed memory area.
@@ -530,6 +536,7 @@ config NVMEM_SUNPLUS_OCOTP
config NVMEM_SUNXI_SID
tristate "Allwinner SoCs SID support"
depends on ARCH_SUNXI
+ depends on HAS_IOMEM
help
This is a driver for the 'security ID' available on various Allwinner
devices.
--
2.56.0