diff options
| author | Konstantin Dorfman <kdorfman@codeaurora.org> | 2015-06-02 17:41:53 +0300 |
|---|---|---|
| committer | Subhash Jadavani <subhashj@codeaurora.org> | 2016-05-31 15:27:11 -0700 |
| commit | 9dbe5a9defd291a34130e6ccc17ff9a07fff276f (patch) | |
| tree | 7746c4f746e901f3165bf032fda96bf47c04e13e | |
| parent | 6e4be0bac2555f84736170f486ecc325ff22fdcb (diff) | |
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: Konstantin Dorfman <kdorfman@codeaurora.org>
Signed-off-by: Pavan Anamula <pavana@codeaurora.org>
| -rw-r--r-- | drivers/mmc/host/sdhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 8ea115e1d80b..6b3c90213dc3 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -2751,7 +2751,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 | |
