From: Jaehoon Chung Date: Fri, 27 Mar 2020 04:08:01 +0000 (+0900) Subject: mmc: sdhci: not return error when SDMA is not supported X-Git-Tag: v2020.07-rc3~20^2~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fabb3a43ada899e6ed248c3dee62348114831227;p=oweals%2Fu-boot.git mmc: sdhci: not return error when SDMA is not supported If Host controller doesn't support SDMA, it doesn't need to return error. Because it can be worked with PIO mode. Signed-off-by: Jaehoon Chung Reviewed-by: Peng Fan Reviewed-by: Minkyu Kang Signed-off-by: Matthias Brugger --- diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 480fad37ed..6e8f6e3d17 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -741,13 +741,12 @@ int sdhci_setup_cfg(struct mmc_config *cfg, struct sdhci_host *host, debug("%s, caps: 0x%x\n", __func__, caps); #ifdef CONFIG_MMC_SDHCI_SDMA - if (!(caps & SDHCI_CAN_DO_SDMA)) { + if ((caps & SDHCI_CAN_DO_SDMA)) { + host->flags |= USE_SDMA; + } else { printf("%s: Your controller doesn't support SDMA!!\n", __func__); - return -EINVAL; } - - host->flags |= USE_SDMA; #endif #if CONFIG_IS_ENABLED(MMC_SDHCI_ADMA) if (!(caps & SDHCI_CAN_DO_ADMA2)) {