[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 05/15] sd: emmc: support idle state in CMD2
From: |
Sai Pavan Boddu |
Subject: |
[RFC PATCH 05/15] sd: emmc: support idle state in CMD2 |
Date: |
Thu, 11 Feb 2021 13:47:16 +0530 |
eMMC is expected to be in idle-state post CMD1. Ready state is an
intermediate stage which we don't come across in Device identification
mode.
Signed-off-by: Sai Pavan Boddu <sai.pavan.boddu@xilinx.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
---
hw/sd/sd.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/sd/sd.c b/hw/sd/sd.c
index e3738b2..69289e0 100644
--- a/hw/sd/sd.c
+++ b/hw/sd/sd.c
@@ -1051,6 +1051,10 @@ static sd_rsp_type_t sd_normal_command(SDState *sd,
SDRequest req)
if (sd->spi)
goto bad_cmd;
switch (sd->state) {
+ case sd_idle_state:
+ if (!sd->emmc) {
+ break;
+ }
case sd_ready_state:
sd->state = sd_identification_state;
return sd_r2_i;
--
2.7.4
- Re: [RFC PATCH 02/15] sd: add eMMC support, (continued)
- [RFC PATCH 04/15] sd: emmc: Update CMD1 definition for eMMC, Sai Pavan Boddu, 2021/02/11
- [RFC PATCH 09/15] sd: emmc: Add support for emmc erase, Sai Pavan Boddu, 2021/02/11
- [RFC PATCH 12/15] sd: emmc: Support boot area in emmc image, Sai Pavan Boddu, 2021/02/11
- [RFC PATCH 13/15] sd: emmc: Subtract bootarea size from blk, Sai Pavan Boddu, 2021/02/11
- [RFC PATCH 05/15] sd: emmc: support idle state in CMD2,
Sai Pavan Boddu <=
- [RFC PATCH 03/15] sd: emmc: Dont not update CARD_CAPACITY for eMMC cards, Sai Pavan Boddu, 2021/02/11
- [RFC PATCH 06/15] sd: emmc: Add mmc switch function support, Sai Pavan Boddu, 2021/02/11
- [RFC PATCH 07/15] sd: emmc: add CMD21 tuning sequence, Sai Pavan Boddu, 2021/02/11
- [RFC PATCH 08/15] sd: emmc: Make ACMD41 illegal for mmc, Sai Pavan Boddu, 2021/02/11
- [RFC PATCH 10/15] sd: emmc: Update CID structure for eMMC, Sai Pavan Boddu, 2021/02/11
- [RFC PATCH 11/15] sd: emmc: Add Extended CSD register definitions, Sai Pavan Boddu, 2021/02/11