Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
6 years ago
by
Yann Gautier
Browse files
Options
Download
Email Patches
Plain Diff
drivers: mmc: check mmc_reset_to_idle return
Signed-off-by:
Yann Gautier
<
yann.gautier@st.com
>
parent
41771df8
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/mmc/mmc.c
+8
-2
drivers/mmc/mmc.c
with
8 additions
and
2 deletions
+8
-2
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
();
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help