projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4f5c82
)
[MMC] Proper check of SCR error code
author
Pierre Ossman
<drzeus@drzeus.cx>
Mon, 5 Dec 2005 10:00:50 +0000
(10:00 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Mon, 5 Dec 2005 10:00:50 +0000
(10:00 +0000)
The routine reading the SCR wasn't paying proper attention to the
error codes returned from the driver.
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/mmc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index d336a1d65dc7ec0ec165a62218840640207fdaf0..b586a83a9b4c7f12fa60c6c13135c05b60c5de91 100644
(file)
--- a/
drivers/mmc/mmc.c
+++ b/
drivers/mmc/mmc.c
@@
-932,8
+932,9
@@
static void mmc_read_scrs(struct mmc_host *host)
sg_init_one(&sg, (u8*)card->raw_scr, 8);
- err = mmc_wait_for_req(host, &mrq);
- if (err != MMC_ERR_NONE) {
+ mmc_wait_for_req(host, &mrq);
+
+ if (cmd.error != MMC_ERR_NONE || data.error != MMC_ERR_NONE) {
mmc_card_set_dead(card);
continue;
}