projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f20bec8
)
mmc: sh-mmcif: reset error code for any opcode
author
Guennadi Liakhovetski
<g.liakhovetski@gmx.de>
Wed, 12 Dec 2012 14:38:15 +0000
(15:38 +0100)
committer
Chris Ball
<cjb@laptop.org>
Mon, 28 Jan 2013 11:51:33 +0000
(06:51 -0500)
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>
drivers/mmc/host/sh_mmcif.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/host/sh_mmcif.c
b/drivers/mmc/host/sh_mmcif.c
index 3cfe383dc22ba461e561d317287fe88a12be8f17..14fafafc12d38606e8b0b60458d4b3983de63dd6 100644
(file)
--- a/
drivers/mmc/host/sh_mmcif.c
+++ b/
drivers/mmc/host/sh_mmcif.c
@@
-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)) {