From 9252d67ab3007601ddf983d1278cbe0e4a647f34 Mon Sep 17 00:00:00 2001 From: Joe Zhou Date: Wed, 22 Jun 2016 23:09:11 +0800 Subject: MdeModulePkg: SdMmc: Add delay before eMMC reset This delay is necessary for eMMC reset to working properly. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Joe Zhou Signed-off-by: Marcin Wojtas Reviewed-by: Feng Tian --- MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c index ee5314510b..61d351726d 100755 --- a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c +++ b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c @@ -51,6 +51,8 @@ EmmcReset ( SdMmcCmdBlk.ResponseType = 0; SdMmcCmdBlk.CommandArgument = 0; + gBS->Stall (1000); + Status = SdMmcPassThruPassThru (PassThru, Slot, &Packet, NULL); return Status; -- cgit v1.2.3