提交 a5e27b41 编写于 作者: H Heiko Schocher 提交者: Tom Rini

mmc: revert mmc: Handle switch error status bit in MMC card status

revert patch:
commit: 6b2221b0: mmc: Handle switch error status bit in MMC card status

to get eMMC working on shc board
Signed-off-by: NHeiko Schocher <hs@denx.de>
上级 496c5483
......@@ -155,8 +155,6 @@ int mmc_send_status(struct mmc *mmc, int timeout)
#endif
return TIMEOUT;
}
if (cmd.response[0] & MMC_STATUS_SWITCH_ERROR)
return SWITCH_ERR;
return 0;
}
......@@ -516,7 +514,7 @@ static int mmc_change_freq(struct mmc *mmc)
err = mmc_switch(mmc, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_HS_TIMING, 1);
if (err)
return err == SWITCH_ERR ? 0 : err;
return err;
/* Now check to see that it worked */
err = mmc_send_ext_csd(mmc, ext_csd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册