]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mmc: sdhci-of-dwcmshc: Fix reset, clk, and SDIO support for Eswin EIC7700
authorHuan He <hehuan1@eswincomputing.com>
Sat, 9 May 2026 08:49:07 +0000 (16:49 +0800)
committerUlf Hansson <ulfh@kernel.org>
Fri, 29 May 2026 12:13:58 +0000 (14:13 +0200)
commit8d4ae34e997062076a9098602eaca43353665bd9
tree91d6762cc8c78caa315c88adc5bab4db60a06f5f
parent5a52c5701a67d5176eb1afbf1bdaf7d6dfeec597
mmc: sdhci-of-dwcmshc: Fix reset, clk, and SDIO support for Eswin EIC7700

The EIC7700 code in sdhci-of-dwcmshc uses host->mmc->caps2 to select
different configuration paths for different card types. The current logic
distinguishes eMMC and SD, but does not handle SDIO separately.

Update the EIC7700 card-type checks so that eMMC, SD and SDIO are
distinguished explicitly.

Switch the reset path to dwcmshc_reset() so that pending interrupt state
is cleared consistently, and use sdhci_enable_clk() so the clock enable
sequence follows the standard SDHCI flow.

Fixes: 32b2633219d3 ("mmc: sdhci-of-dwcmshc: Add support for Eswin EIC7700")
Signed-off-by: Huan He <hehuan1@eswincomputing.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulfh@kernel.org>
drivers/mmc/host/sdhci-of-dwcmshc.c