Proper check of SCR error code
PATCH 1/1 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]>
---
drivers/mmc/mmc.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/mmc/mmc.c +3 -2
@@ -932,8 +932,9 @@ static void mmc_read_scrs(struct mmc_hossg_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 ; }
Russell King
AppliedQuoted 2 lines · Pierre Ossman
The routine reading the SCR wasn't paying proper attention to the error codes returned from the driver.
Applied, thanks Pierre.
Signature · 3 lines
Russell King Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: 2.6 Serial core