projects
/
project
/
bcm63xx
/
atf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a82a9c
)
drivers: mmc: Fix R3 response type definition
author
Bryan O'Donoghue
<bryan.odonoghue@linaro.org>
Wed, 15 Aug 2018 14:59:07 +0000
(15:59 +0100)
committer
Bryan O'Donoghue
<bryan.odonoghue@linaro.org>
Tue, 4 Sep 2018 11:35:24 +0000
(12:35 +0100)
The R3 response type definition should be (1 << 0). Make sure we define the
expected response code in the appropriate fashion.
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
drivers/mmc/mmc.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/mmc.c
b/drivers/mmc/mmc.c
index bf87612d5be565f6d22e9b486536241c6b63b986..6a57a9343651d2849ab5e4887605fa1d3d4599d2 100644
(file)
--- a/
drivers/mmc/mmc.c
+++ b/
drivers/mmc/mmc.c
@@
-333,7
+333,7
@@
static int sd_send_op_cond(void)
}
/* ACMD41: SD_SEND_OP_COND */
- ret = mmc_send_cmd(MMC_ACMD(41), OCR_HCS, MMC_RESPONSE_R
(3)
,
+ ret = mmc_send_cmd(MMC_ACMD(41), OCR_HCS, MMC_RESPONSE_R
3
,
&resp_data[0]);
if (ret != 0) {
return ret;
@@
-384,7
+384,7
@@
static int mmc_send_op_cond(void)
for (n = 0; n < SEND_OP_COND_MAX_RETRIES; n++) {
ret = mmc_send_cmd(MMC_CMD(1), OCR_SECTOR_MODE |
OCR_VDD_MIN_2V7 | OCR_VDD_MIN_1V7,
- MMC_RESPONSE_R
(3)
, &resp_data[0]);
+ MMC_RESPONSE_R
3
, &resp_data[0]);
if (ret != 0) {
return ret;
}