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

mmc: sdhci-esdhc-imx: advertise HS400 mode through MMC caps

Instead of having an indirection through the SDHCI layer and emulating
a capability bit, that isn't there in hardware, do the same same thing
as with HS400_ES and advertise the support for HS400 directly through
the MMC caps.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Link: https://lore.kernel.org/r/20210510190400.105162-2-l.stach@pengutronix.de
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by

Lucas Stach and committed by
Ulf Hansson
2991ad76 4d895de3

+1 -4
+1 -4
drivers/mmc/host/sdhci-esdhc-imx.c
··· 427 427 | FIELD_PREP(SDHCI_RETUNING_MODE_MASK, 428 428 SDHCI_TUNING_MODE_3); 429 429 430 - if (imx_data->socdata->flags & ESDHC_FLAG_HS400) 431 - val |= SDHCI_SUPPORT_HS400; 432 - 433 430 /* 434 431 * Do not advertise faster UHS modes if there are no 435 432 * pinctrl states for 100MHz/200MHz. ··· 1588 1591 host->quirks |= SDHCI_QUIRK_BROKEN_ADMA; 1589 1592 1590 1593 if (imx_data->socdata->flags & ESDHC_FLAG_HS400) 1591 - host->quirks2 |= SDHCI_QUIRK2_CAPS_BIT63_FOR_HS400; 1594 + host->mmc->caps2 |= MMC_CAP2_HS400; 1592 1595 1593 1596 if (imx_data->socdata->flags & ESDHC_FLAG_BROKEN_AUTO_CMD23) 1594 1597 host->quirks2 |= SDHCI_QUIRK2_ACMD23_BROKEN;