Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
77614a99
Commit
77614a99
authored
Nov 29, 2018
by
Yann Gautier
Browse files
drivers: mmc: check mmc_reset_to_idle return
Signed-off-by:
Yann Gautier
<
yann.gautier@st.com
>
parent
41771df8
Changes
1
Hide whitespace changes
Inline
Side-by-side
drivers/mmc/mmc.c
View file @
77614a99
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment