Commit b85fb0a1 authored by Masaharu Hayakawa's avatar Masaharu Hayakawa Committed by Ulf Hansson
Browse files

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: default avatarMasaharu Hayakawa <>
[Niklas: update commit message]
Signed-off-by: default avatarNiklas Söderlund <>
Reviewed-by: default avatarWolfram Sang <>
Tested-by: default avatarWolfram Sang <>
Signed-off-by: default avatarUlf Hansson <>
parent 75f349a1
......@@ -839,8 +839,8 @@ static void tmio_mmc_finish_request(struct tmio_mmc_host *host)
if (mrq->cmd->error || (mrq->data && mrq->data->error))
if (host->check_scc_error)
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) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment