]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mmc: sdhci-esdhc-imx: remove duplicate HS400 bus width validation
authorLuke Wang <ziniu.wang_1@nxp.com>
Wed, 11 Mar 2026 09:50:08 +0000 (17:50 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 16 Mar 2026 15:14:05 +0000 (16:14 +0100)
mmc_validate_host_caps() already validates that HS400/HS400ES requires
8-bit bus width. Remove the duplicate validation.

Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-esdhc-imx.c

index 37e0ae3e6db1ef39656f56ff8d77e2b72a9ff189..18ecddd6df6f22f5d8e5c645ca2d192c4586b0a3 100644 (file)
@@ -1842,10 +1842,6 @@ sdhci_esdhc_imx_probe_dt(struct platform_device *pdev,
 
        sdhci_get_property(pdev);
 
-       /* HS400/HS400ES require 8 bit bus */
-       if (!(host->mmc->caps & MMC_CAP_8_BIT_DATA))
-               host->mmc->caps2 &= ~(MMC_CAP2_HS400 | MMC_CAP2_HS400_ES);
-
        if (mmc_gpio_get_cd(host->mmc) >= 0)
                host->quirks &= ~SDHCI_QUIRK_BROKEN_CARD_DETECTION;