mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
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>
This commit is contained in:
parent
fac8bfd4f5
commit
fabb3a43ad
1 changed files with 3 additions and 4 deletions
|
@ -741,13 +741,12 @@ int sdhci_setup_cfg(struct mmc_config *cfg, struct sdhci_host *host,
|
||||||
debug("%s, caps: 0x%x\n", __func__, caps);
|
debug("%s, caps: 0x%x\n", __func__, caps);
|
||||||
|
|
||||||
#ifdef CONFIG_MMC_SDHCI_SDMA
|
#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",
|
printf("%s: Your controller doesn't support SDMA!!\n",
|
||||||
__func__);
|
__func__);
|
||||||
return -EINVAL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
host->flags |= USE_SDMA;
|
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_IS_ENABLED(MMC_SDHCI_ADMA)
|
#if CONFIG_IS_ENABLED(MMC_SDHCI_ADMA)
|
||||||
if (!(caps & SDHCI_CAN_DO_ADMA2)) {
|
if (!(caps & SDHCI_CAN_DO_ADMA2)) {
|
||||||
|
|
Loading…
Reference in a new issue