diff options
author | Yann Gautier <yann.gautier@st.com> | 2018-11-29 15:44:04 +0100 |
---|---|---|
committer | Yann Gautier <yann.gautier@st.com> | 2018-12-04 10:38:41 +0100 |
commit | ba7f9bfd8e6201eb98c82de3d1bf62323819312f (patch) | |
tree | ab1197e09229f4f364b89f6fe75712d6bb6222b8 /plat/st | |
parent | 77614a99499b7316340fff738ba07b35736bcfe5 (diff) |
stm32mp: check stm32_sdmmc2_mmc_init return
Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'plat/st')
-rw-r--r-- | plat/st/stm32mp1/bl2_io_storage.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plat/st/stm32mp1/bl2_io_storage.c b/plat/st/stm32mp1/bl2_io_storage.c index fdbd4bfd..b1125d15 100644 --- a/plat/st/stm32mp1/bl2_io_storage.c +++ b/plat/st/stm32mp1/bl2_io_storage.c @@ -282,7 +282,11 @@ void stm32mp1_io_setup(void) } params.device_info = &device_info; - stm32_sdmmc2_mmc_init(¶ms); + if (stm32_sdmmc2_mmc_init(¶ms) != 0) { + ERROR("SDMMC%u init failed\n", + boot_context->boot_interface_instance); + panic(); + } /* Open MMC as a block device to read GPT table */ io_result = register_io_dev_block(&mmc_dev_con); |