mmc: block: Check re-tuning in the recovery path

If re-tuning is needed, do it in the recovery path to
give recovery commands a better chance of success.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
Adrian Hunter 2015-05-07 13:10:23 +03:00 коммит произвёл Ulf Hansson
Родитель bd11e8bd03
Коммит 6f398ad207
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -913,6 +913,9 @@ static int mmc_blk_cmd_recovery(struct mmc_card *card, struct request *req,
if (!err) if (!err)
break; break;
/* Re-tune if needed */
mmc_retune_recheck(card->host);
prev_cmd_status_valid = false; prev_cmd_status_valid = false;
pr_err("%s: error %d sending status command, %sing\n", pr_err("%s: error %d sending status command, %sing\n",
req->rq_disk->disk_name, err, retry ? "retry" : "abort"); req->rq_disk->disk_name, err, retry ? "retry" : "abort");