summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci.c
diff options
context:
space:
mode:
authorJisheng Zhang2018-09-17 07:30:41 +0200
committerUlf Hansson2018-10-08 11:40:43 +0200
commit07be55b567a556c7e4d421e5f4bb4248933bfe32 (patch)
treecd2cc2eb473048da024cbbf73147f82c69859f99 /drivers/mmc/host/sdhci.c
parentmmc: mxcmmc: replace spin_lock_irqsave with spin_lock in ISR (diff)
downloadkernel-qcow2-linux-07be55b567a556c7e4d421e5f4bb4248933bfe32.tar.gz
kernel-qcow2-linux-07be55b567a556c7e4d421e5f4bb4248933bfe32.tar.xz
kernel-qcow2-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>
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r--drivers/mmc/host/sdhci.c4
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)