Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e781de44 authored by Pierre Ossman's avatar Pierre Ossman Committed by Russell King
Browse files

[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: default avatarPierre Ossman <drzeus@drzeus.cx>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent e4f5c82a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;
		}