]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Universal/MmcDxe/MmcBlockIo.c
EmbeddedPkg/MmcDxe: Fixed MmcIdentificationMode()
[mirror_edk2.git] / EmbeddedPkg / Universal / MmcDxe / MmcBlockIo.c
index 8940f519b749ac1c43aa9fd8b544180cf5caaf46..32a85196ad8228a02ef698050b61d70db61f9d8b 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 *\r
-*  Copyright (c) 2011, ARM Limited. All rights reserved.\r
+*  Copyright (c) 2011-2012, ARM Limited. All rights reserved.\r
 *  \r
 *  This program and the accompanying materials                          \r
 *  are licensed and made available under the terms and conditions of the BSD License         \r
@@ -252,7 +252,7 @@ MmcIdentificationMode (
     DEBUG ((EFI_D_ERROR, "Not a SD2.0 Card\n"));\r
   }\r
 \r
-  // We need to wait for the MMC or SD card is ready => (gCardInfo.OCRData.Busy == 1)\r
+  // We need to wait for the MMC or SD card is ready => (gCardInfo.OCRData.PowerUp == 1)\r
   Timeout = MAX_RETRY_COUNT;\r
   while (Timeout > 0) {\r
     // SD Card or MMC Card ? CMD55 indicates to the card that the next command is an application specific command\r
@@ -287,7 +287,7 @@ MmcIdentificationMode (
     }\r
 \r
     if (!EFI_ERROR(Status)) {\r
-      if (MmcHostInstance->CardInfo.OCRData.Busy == 0) {\r
+      if (!MmcHostInstance->CardInfo.OCRData.PowerUp) {\r
           MicroSecondDelay(1);\r
           Timeout--;\r
       } else {\r