Re: [PATCH 3/3] mmc: renesas_sdhi: Add SDHI quirk for RZ/G2E

From: Geert Uytterhoeven

Date: Mon May 18 2026 - 09:18:18 EST


Hi Prabhakar,

On Thu, 14 May 2026 at 23:20, Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote:
> From: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
>
> The RZ/G2E (R8A774C0) is identical to R-Car E3 (R8A77990), so apply
> the same sdhi_quirks_r8a77965 quirk across all revisions, as is already
> done for R-Car E3.
>
> Fixes: ca804a5615a7 ("mmc: renesas_sdhi_internal_dmac: Whitelist r8a774c0")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>

Thanks for your patch!

> --- a/drivers/mmc/host/renesas_sdhi_internal_dmac.c
> +++ b/drivers/mmc/host/renesas_sdhi_internal_dmac.c
> @@ -225,6 +225,7 @@ static const struct renesas_sdhi_quirks sdhi_quirks_rzg2l = {
> static const struct soc_device_attribute sdhi_quirks_match[] = {

This array is meant for quirks, i.e. to address issues on specific
SoC variants that cannot just be identified by the compatible value.

> { .soc_id = "r8a774a1", .revision = "ES1.[012]", .data = &sdhi_quirks_4tap_nohs400 },
> { .soc_id = "r8a774b1", .data = &sdhi_quirks_r8a77965 },
> + { .soc_id = "r8a774c0", .data = &sdhi_quirks_r8a77990 },

Hence I think the RZ/G2E entry should be added to
renesas_sdhi_internal_dmac_of_match[] instead, referring to
of_r8a77990_compatible.

> { .soc_id = "r8a774e1", .data = &sdhi_quirks_bad_taps2367 },
> { .soc_id = "r8a7795", .revision = "ES2.0", .data = &sdhi_quirks_4tap },
> { .soc_id = "r8a7796", .revision = "ES1.0", .data = &sdhi_quirks_4tap_nohs400_one_rx },

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