diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2020-01-23 08:43:42 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2020-01-23 08:44:55 +0900 |
commit | 3c0b3f2014370ab963da869cd3a717e2dcf926f0 (patch) | |
tree | 316d67586bd232d6f685b7f60d3ecdc057e5e3d8 | |
parent | 2360514efff5662b2df2b60de2b75effa5812834 (diff) | |
download | u-boot-3c0b3f2014370ab963da869cd3a717e2dcf926f0.tar.gz u-boot-3c0b3f2014370ab963da869cd3a717e2dcf926f0.tar.bz2 u-boot-3c0b3f2014370ab963da869cd3a717e2dcf926f0.zip |
mmc: sdhci: not return error when SDMA is not suppported
If host controller doesn't support SDMA mode, it doesn't need to return
error. Because it can be worked with PIO mode.
It doesn't need to use QUIRK_BROKEN_SDMA.
Change-Id: Iafbb915b3fd33209ba689e856bfd934acac9a03e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
-rw-r--r-- | drivers/mmc/sdhci.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index bb2bcd4702..ccd23856aa 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -728,19 +728,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 (host->quirks & SDHCI_QUIRK_BROKEN_SDMA) { - caps &= ~SDHCI_CAN_DO_SDMA; - goto skip; - } else { - printf("%s: Your controller doesn't support SDMA!!\n", - __func__); - return -EINVAL; - } + if ((caps & SDHCI_CAN_DO_SDMA)) { + host->flags |= USE_SDMA; + } else { + debug("%s: Your controller doesn't support SDMA!!\n", + __func__); } - - host->flags |= USE_SDMA; -skip: #endif #if CONFIG_IS_ENABLED(MMC_SDHCI_ADMA) if (!(caps & SDHCI_CAN_DO_ADMA2)) { |