From: Masaharu Hayakawa Date: Wed, 29 Aug 2018 23:32:07 +0000 (+0200) Subject: mmc: tmio: Fix SCC error detection X-Git-Tag: microblaze-v5.0-rc1~193^2~101 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=b85fb0a1c8aeaaa40d08945d51a6656b512173f0;p=linux-2.6-microblaze.git mmc: tmio: Fix SCC error detection SDR104, HS200 and HS400 need to check for SCC error. If SCC error is detected, retuning is necessary. Signed-off-by: Masaharu Hayakawa [Niklas: update commit message] Signed-off-by: Niklas Söderlund Reviewed-by: Wolfram Sang Tested-by: Wolfram Sang Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c index d48cd0402087..f05c3a622f09 100644 --- a/drivers/mmc/host/tmio_mmc_core.c +++ b/drivers/mmc/host/tmio_mmc_core.c @@ -839,8 +839,8 @@ static void tmio_mmc_finish_request(struct tmio_mmc_host *host) if (mrq->cmd->error || (mrq->data && mrq->data->error)) tmio_mmc_abort_dma(host); - if (host->check_scc_error) - host->check_scc_error(host); + if (host->check_scc_error && host->check_scc_error(host)) + mrq->cmd->error = -EILSEQ; /* If SET_BLOCK_COUNT, continue with main command */ if (host->mrq && !mrq->cmd->error) {