[PATCH] EDAC/armada_xp: depend on EDAC=y

From: Pengpeng Hou

Date: Thu Dec 03 2026 - 20:56:05 EST


EDAC_ARMADA_XP can be selected as a built-in suboption when EDAC=m,
although the EDAC directory then does not supply that built-in object.

Limit this option to built-in EDAC. This removes the inconsistent
combination; providing the DDR and L2 drivers in a modular EDAC
configuration is a separate change.

The issue was found by our static-analysis tool and manually reviewed.

Fixes: 7f6998a41257 ("ARM: 8888/1: EDAC: Add driver for the Marvell Armada XP SDRAM and L2 cache ECC")
Signed-off-by: Pengpeng Hou <hppiscas@xxxxxxx>
---
The original patch was prepared with Gemini. Codex assisted with this
review and revision (Assisted-by: gpt 5).
Starting from the ARM mvebu_v7 defconfig, the Armada option resolved to
y with EDAC=m before the change and to n afterwards. EDAC=y still
allowed the driver. This was a Kconfig test using the kernel dummy cross
tools; no target binary was built.

drivers/edac/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig
index 4c70729b0d3af3d1edf5aea67a28c2f6edecab66..518730ccd22c7cf6362cfba3cf0304fb36d73c25 100644
--- a/drivers/edac/Kconfig
+++ b/drivers/edac/Kconfig
@@ -477,7 +477,7 @@ config EDAC_SIFIVE

config EDAC_ARMADA_XP
bool "Marvell Armada XP DDR and L2 Cache ECC"
- depends on MACH_MVEBU_V7
+ depends on EDAC=y && MACH_MVEBU_V7
help
Support for error correction and detection on the Marvell Aramada XP
DDR RAM and L2 cache controllers.

base-commit: d06ce6f1eb5eeffd4ebcfde345dc34a98131d106