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>
This commit is contained in:
Konstantin Dorfman 2015-06-02 17:41:53 +03:00 committed by Subhash Jadavani
parent 6e4be0bac2
commit 9dbe5a9def

View file

@ -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 |