Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8842fd17 authored by Adrian Hunter's avatar Adrian Hunter Committed by Ulf Hansson
Browse files

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: default avatarAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 33a57adb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);