Re: [PATCH v9 2/3] EDAC/cadence: Add Cadence DDR EDAC driver

From: Geert Uytterhoeven

Date: Wed Nov 25 2026 - 11:57:30 EST


Hi Paul,

On Fri, 20 Nov 2026 at 17:09, Paul Louvel <paul.louvel@xxxxxxxxxxx> wrote:
> Add the Cadence EDAC driver found on Renesas RZ/N1x SoC.
> The memory controller supports ECC, software scrubbing, and SECDED.
>
> Tested-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
> Signed-off-by: Paul Louvel (Schneider Electric) <paul.louvel@xxxxxxxxxxx>

Thanks for your patch!

> --- /dev/null
> +++ b/drivers/edac/cadence_edac.c

> +static int cdns_setup_mc(struct platform_device *pdev, void __iomem *io_base)
> +{

> + edac_mc_chipset_printk(mci, KERN_DEBUG, DRV_NAME, "ECC %s\n",
> + (!priv->ecc_enabled) ? "disabled" : "enabled");

Inverse logic is harder to read. And we have a helper for that:

str_enabled_disabled(priv->ecc_enabled)

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds