[edk2] EmbeddedPkg : Corrected flow for setting Buswidth for eMMC

Meenakshi Aggarwal meenakshi.aggarwal at nxp.com
Tue Dec 4 02:28:50 PST 2018


Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal at nxp.com>
---
 EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c b/EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c
index f661a0c..9118eb2 100755
--- a/EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c
+++ b/EmbeddedPkg/Universal/MmcDxe/MmcIdentification.c
@@ -309,11 +309,14 @@ InitializeEmmcDevice (
       }
       Status = EmmcSetEXTCSD (MmcHostInstance, EXTCSD_BUS_WIDTH, BusMode);
       if (EFI_ERROR (Status)) {
-        DEBUG ((DEBUG_ERROR, "InitializeEmmcDevice(): Failed to set EXTCSD bus width, Status:%r\n", Status));
+        continue;
+      } else {
+        DEBUG ((DEBUG_INFO, "InitializeEmmcDevice(): Set EXTCSD bus width %d successfully\n", BusMode));
+        break;
       }
-      return Status;
     }
   }
+
   return Status;
 }
 
-- 
1.9.1



More information about the edk2-devel mailing list