diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2020-03-27 13:08:01 +0900 |
---|---|---|
committer | Matthias Brugger <mbrugger@suse.com> | 2020-05-12 11:01:14 +0200 |
commit | fabb3a43ada899e6ed248c3dee62348114831227 (patch) | |
tree | 045cc2e929959467bc5caea5e24283c92a3c266a /drivers | |
parent | fac8bfd4f52612fceb2d9784c93ed8f147f209c3 (diff) | |
download | u-boot-fabb3a43ada899e6ed248c3dee62348114831227.zip u-boot-fabb3a43ada899e6ed248c3dee62348114831227.tar.gz u-boot-fabb3a43ada899e6ed248c3dee62348114831227.tar.bz2 |
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 <jh80.chung@samsung.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Matthias Brugger <mbrugger@suse.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/sdhci.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 480fad3..6e8f6e3 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)) { |