summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/mmc/sdhci-cadence.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c
index a0b9434e4f0..c7f88977ef9 100644
--- a/drivers/mmc/sdhci-cadence.c
+++ b/drivers/mmc/sdhci-cadence.c
@@ -207,16 +207,10 @@ static int __maybe_unused sdhci_cdns_execute_tuning(struct udevice *dev,
int i;
/*
- * This handler only implements the eMMC tuning that is specific to
- * this controller. The tuning for SD timing should be handled by the
- * SDHCI core.
+ * This function performs the tuning process for both SD and eMMC
+ * interfaces. It sweeps through all available tuning points,
+ * sending tuning commands at each step.
*/
- if (!IS_MMC(mmc))
- return -ENOTSUPP;
-
- if (WARN_ON(opcode != MMC_CMD_SEND_TUNING_BLOCK_HS200))
- return -EINVAL;
-
for (i = 0; i < SDHCI_CDNS_MAX_TUNING_LOOP; i++) {
if (sdhci_cdns_set_tune_val(plat, i) ||
mmc_send_tuning(mmc, opcode)) { /* bad */