Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: renesas_sdhi: handle M3-W ES1.2 and 1.3 revisions

For ES1.2, add a comment explaining the situation. For ES1.3 (and
later, although unlikely), add a new entry defining it as 4tap.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20200423130432.9990-2-wsa+renesas@sang-engineering.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Wolfram Sang and committed by
Ulf Hansson
f583da40 5671ad66

+6
+6
drivers/mmc/host/renesas_sdhi_core.c
··· 711 711 .hs400_disabled = true, 712 712 }; 713 713 714 + /* 715 + * Note for r8a7796 / r8a774a1: we can't distinguish ES1.1 and 1.2 as of now. 716 + * So, we want to treat them equally and only have a match for ES1.2 to enforce 717 + * this if there ever will be a way to distinguish ES1.2. 718 + */ 714 719 static const struct soc_device_attribute sdhi_quirks_match[] = { 715 720 { .soc_id = "r8a774a1", .revision = "ES1.[012]", .data = &sdhi_quirks_4tap_nohs400 }, 716 721 { .soc_id = "r8a7795", .revision = "ES1.*", .data = &sdhi_quirks_4tap_nohs400 }, 717 722 { .soc_id = "r8a7795", .revision = "ES2.0", .data = &sdhi_quirks_4tap }, 718 723 { .soc_id = "r8a7796", .revision = "ES1.[012]", .data = &sdhi_quirks_4tap_nohs400 }, 724 + { .soc_id = "r8a7796", .revision = "ES1.*", .data = &sdhi_quirks_4tap }, 719 725 { .soc_id = "r8a77980", .data = &sdhi_quirks_nohs400 }, 720 726 { /* Sentinel. */ }, 721 727 };