mmc: ratelimit error messages

Change-Id: Ida380e193ea4c1ad2c1347997a24b67ed05f7975
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang 2018-04-02 14:25:31 +08:00
commit 642d98704a
3 changed files with 3 additions and 3 deletions

View file

@ -1259,7 +1259,7 @@ static int mmc_blk_cmd_recovery(struct mmc_card *card, struct request *req,
mmc_retune_recheck(card->host);
prev_cmd_status_valid = false;
pr_err("%s: error %d sending status command, %sing\n",
pr_err_ratelimited("%s: error %d sending status command, %sing\n",
req->rq_disk->disk_name, err, retry ? "retry" : "abort");
}

View file

@ -1112,7 +1112,7 @@ int mmc_execute_tuning(struct mmc_card *card)
err = host->ops->execute_tuning(host, opcode);
if (err)
pr_err("%s: tuning execution failed\n", mmc_hostname(host));
pr_err_ratelimited("%s: tuning execution failed\n", mmc_hostname(host));
else
mmc_retune_enable(host);

View file

@ -146,7 +146,7 @@ static int dw_mci_rk3288_execute_tuning(struct dw_mci_slot *slot, u32 opcode)
}
if (range_count == 0) {
dev_warn(host->dev, "All phases bad!");
dev_warn_ratelimited(host->dev, "All phases bad!");
ret = -EIO;
goto free;
}