Re: [PATCH v5 1/2] EDAC/altera: use ECC manager compatible to select A10/S10 IRQ layout

From: Dinh Nguyen

Date: Wed Jul 08 2026 - 16:48:15 EST




On 7/8/26 04:11, Rounak Das wrote:
The SDMMC ECC IRQ layout selection uses CONFIG_64BIT to distinguish
between Arria10 and Stratix10 paths.

Detect the SoC once at probe via the device match table (.data)
store it in struct altr_arria10_edac, and use it instead of CONFIG_64BIT.

This keeps the decision correct for every ECC child device
(OCRAM, SD/MMC, etc.) and avoids any runtime compatible lookup.

Signed-off-by: Rounak Das <rounakdas2025@xxxxxxxxx>
---
drivers/edac/altera_edac.c | 107 +++++++++++++++++++------------------
drivers/edac/altera_edac.h | 1 +
2 files changed, 55 insertions(+), 53 deletions(-)


Acked-by: Dinh Nguyen <dinguyen@xxxxxxxxxx>