diff options
author | Jisheng Zhang <Jisheng.Zhang@synaptics.com> | 2018-09-17 07:30:41 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-10-08 11:40:43 +0200 |
commit | 07be55b567a556c7e4d421e5f4bb4248933bfe32 (patch) | |
tree | cd2cc2eb473048da024cbbf73147f82c69859f99 | |
parent | mmc: mxcmmc: replace spin_lock_irqsave with spin_lock in ISR (diff) | |
download | linux-07be55b567a556c7e4d421e5f4bb4248933bfe32.tar.xz linux-07be55b567a556c7e4d421e5f4bb4248933bfe32.zip |
mmc: sdhci: fix __sdhci_adma_write_desc
If hosts provides ops->adma_write_desc, we should not fall back to the
general sdhci_adma_write_desc().
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | drivers/mmc/host/sdhci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 0dda6f4b6a24..99bdae53fa2e 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -649,8 +649,8 @@ static inline void __sdhci_adma_write_desc(struct sdhci_host *host, { if (host->ops->adma_write_desc) host->ops->adma_write_desc(host, desc, addr, len, cmd); - - sdhci_adma_write_desc(host, desc, addr, len, cmd); + else + sdhci_adma_write_desc(host, desc, addr, len, cmd); } static void sdhci_adma_mark_end(void *desc) |