diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2016-06-29 16:24:37 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-07-25 10:34:45 +0200 |
commit | 8842fd17b655c19fa2f50cae5924b35769411da5 (patch) | |
tree | 13b9a2044e6b0f769a385d593f2d5cb6a13eab81 /drivers/mmc/host | |
parent | 33a57adb6be38fbf008e4cdbf6c7085ed269bd3c (diff) |
mmc: sdhci: Avoid STOP cmd triggering warning in sdhci_send_command()
The STOP command is sent in error conditions, even when the command is
not finished. Avoid triggering the warning for that in sdhci_send_command()
by setting host->cmd to NULL first.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 614d77694f17..6c8cc1a1b858 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1027,6 +1027,8 @@ static void sdhci_finish_data(struct sdhci_host *host) sdhci_do_reset(host, SDHCI_RESET_DATA); } + /* Avoid triggering warning in sdhci_send_command() */ + host->cmd = NULL; sdhci_send_command(host, data->stop); } else { sdhci_finish_mrq(host, data->mrq); |