mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[MMC] Proper check of SCR error code
The routine reading the SCR wasn't paying proper attention to the error codes returned from the driver. Signed-off-by: Pierre Ossman <[email protected]> Signed-off-by: Russell King <[email protected]>
This commit is contained in:
parent
e4f5c82a92
commit
e781de4415
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue