From: Joe Zhou Date: Wed, 22 Jun 2016 15:09:10 +0000 (+0800) Subject: MdeModulePkg: SdMmc: Fix parameters order in EmmcSwitch functions call X-Git-Tag: edk2-stable201903~6792 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=91ff0f05914a4ee153c0a6241a2f8e93f9316325;p=mirror_edk2.git MdeModulePkg: SdMmc: Fix parameters order in EmmcSwitch functions call Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Joe Zhou Signed-off-by: Jan Dabros Signed-off-by: Marcin Wojtas Reviewed-by: Feng Tian --- diff --git a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c old mode 100644 new mode 100755 index 0796df393a..ee5314510b --- a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c +++ b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c @@ -1079,7 +1079,7 @@ EmmcSetBusMode ( // // Execute High Speed timing switch procedure // - Status = EmmcSwitchToHighSpeed (PciIo, PassThru, Slot, Rca, ClockFreq, BusWidth, IsDdr); + Status = EmmcSwitchToHighSpeed (PciIo, PassThru, Slot, Rca, ClockFreq, IsDdr, BusWidth); } DEBUG ((EFI_D_INFO, "EmmcSetBusMode: Switch to %a %r\n", (HsTiming == 3) ? "HS400" : ((HsTiming == 2) ? "HS200" : "HighSpeed"), Status)); diff --git a/MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHci.c b/MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHci.c index e23d03c2be..d6d3bdbd91 100644 --- a/MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHci.c +++ b/MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHci.c @@ -2805,7 +2805,7 @@ EmmcPeimSetBusMode ( // // Execute High Speed timing switch procedure // - Status = EmmcPeimSwitchToHighSpeed (Slot, Rca, ClockFreq, BusWidth, IsDdr); + Status = EmmcPeimSwitchToHighSpeed (Slot, Rca, ClockFreq, IsDdr, BusWidth); } return Status;