mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
mmc: sh_mmcif: reset error code for any opcode
If a command execution has produced an error, it has to be reset as a part of the error handling. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
parent
8047310ee9
commit
aba9d64678
1 changed files with 1 additions and 1 deletions
|
@ -1041,7 +1041,6 @@ static bool sh_mmcif_end_cmd(struct sh_mmcif_host *host)
|
|||
case MMC_SELECT_CARD:
|
||||
case MMC_APP_CMD:
|
||||
cmd->error = -ETIMEDOUT;
|
||||
host->sd_error = false;
|
||||
break;
|
||||
default:
|
||||
cmd->error = sh_mmcif_error_manage(host);
|
||||
|
@ -1049,6 +1048,7 @@ static bool sh_mmcif_end_cmd(struct sh_mmcif_host *host)
|
|||
cmd->opcode, cmd->error);
|
||||
break;
|
||||
}
|
||||
host->sd_error = false;
|
||||
return false;
|
||||
}
|
||||
if (!(cmd->flags & MMC_RSP_PRESENT)) {
|
||||
|
|
Loading…
Reference in a new issue