diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2018-08-15 15:59:07 +0100 |
---|---|---|
committer | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2018-09-04 12:35:24 +0100 |
commit | 94522ff7f6d274265105935ed3904805579f9c81 (patch) | |
tree | 23e60a289b10dfdc5b4738963c3b09f368bcb2b7 /drivers/mmc | |
parent | 2a82a9c95f6c06079f58d69315544a6b49cf64a4 (diff) |
drivers: mmc: Fix R3 response type definition
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/mmc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index bf87612d..6a57a934 100644 --- 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_R3, &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_R3, &resp_data[0]); if (ret != 0) { return ret; } |