mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
drivers: mmc: check mmc_reset_to_idle return
Signed-off-by: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
parent
41771df849
commit
77614a9949
1 changed files with 8 additions and 2 deletions
|
@ -386,7 +386,10 @@ static int mmc_send_op_cond(void)
|
|||
int ret, n;
|
||||
unsigned int resp_data[4];
|
||||
|
||||
mmc_reset_to_idle();
|
||||
ret = mmc_reset_to_idle();
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
};
|
||||
|
||||
for (n = 0; n < SEND_OP_COND_MAX_RETRIES; n++) {
|
||||
ret = mmc_send_cmd(MMC_CMD(1), OCR_SECTOR_MODE |
|
||||
|
@ -416,7 +419,10 @@ static int mmc_enumerate(unsigned int clk, unsigned int bus_width)
|
|||
|
||||
ops->init();
|
||||
|
||||
mmc_reset_to_idle();
|
||||
ret = mmc_reset_to_idle();
|
||||
if (ret != 0) {
|
||||
return ret;
|
||||
};
|
||||
|
||||
if (mmc_dev_info->mmc_dev_type == MMC_IS_EMMC) {
|
||||
ret = mmc_send_op_cond();
|
||||
|
|
Loading…
Add table
Reference in a new issue