提交 e781de44 编写于 作者: P Pierre Ossman 提交者: Russell King

[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: NPierre Ossman <drzeus@drzeus.cx>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 e4f5c82a
...@@ -932,8 +932,9 @@ static void mmc_read_scrs(struct mmc_host *host) ...@@ -932,8 +932,9 @@ static void mmc_read_scrs(struct mmc_host *host)
sg_init_one(&sg, (u8*)card->raw_scr, 8); sg_init_one(&sg, (u8*)card->raw_scr, 8);
err = mmc_wait_for_req(host, &mrq); mmc_wait_for_req(host, &mrq);
if (err != MMC_ERR_NONE) {
if (cmd.error != MMC_ERR_NONE || data.error != MMC_ERR_NONE) {
mmc_card_set_dead(card); mmc_card_set_dead(card);
continue; continue;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册