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

Dinh Nguyen <[email protected]> Wed, 8 Jul 2026 15:48:06 -0500
Newsgroups org.kernel.vger.linux-edac,org.kernel.vger.linux-kernel
Message-ID <[email protected]>

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 <[email protected]>
> ---
>   drivers/edac/altera_edac.c | 107 +++++++++++++++++++------------------
>   drivers/edac/altera_edac.h |   1 +
>   2 files changed, 55 insertions(+), 53 deletions(-)
> 

Acked-by: Dinh Nguyen <[email protected]>