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

Commit 3307e0ff authored by Konstantin Dorfman's avatar Konstantin Dorfman
Browse files

mmc: sdhci: use pr_err_ratelimited for AUTO CMD command errors



Switch to using pr_err_ratelimited in order to avoid
flooding the logs in case of error function gets
called repeatedly.

CRs-Fixed: 837631
Change-Id: I08fffb7e77584ac7fe7ba7152677cc12293e1655
Signed-off-by: default avatarKonstantin Dorfman <kdorfman@codeaurora.org>
Signed-off-by: default avatarPavan Anamula <pavana@codeaurora.org>
parent 5aa789d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2773,7 +2773,7 @@ static void sdhci_cmd_irq(struct sdhci_host *host, u32 intmask, u32 *mask)

	if (intmask & SDHCI_INT_AUTO_CMD_ERR) {
		auto_cmd_status = host->auto_cmd_err_sts;
		pr_err("%s: %s: AUTO CMD err sts 0x%08x\n",
		pr_err_ratelimited("%s: %s: AUTO CMD err sts 0x%08x\n",
			mmc_hostname(host->mmc), __func__, auto_cmd_status);
		if (auto_cmd_status & (SDHCI_AUTO_CMD12_NOT_EXEC |
				       SDHCI_AUTO_CMD_INDEX_ERR |