EmmcDevice: fix detection on some models
From stepan: "This enables eMMC booting when starting edk2 from depthcharge. Previously the driver would bail out with an error while setting the eMMC frequency, because depthcharge has already set up the controller." Also fixed detection on google/lars w/Core-i5 with upstream coreboot + Tianocore payload
This commit is contained in:
@@ -695,7 +695,6 @@ EmmcSwitchClockFreq (
|
||||
Status = EmmcSendStatus (PassThru, Slot, Rca, &DevStatus);
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR, "EmmcSwitchClockFreq: Send status fails with %r\n", Status));
|
||||
return Status;
|
||||
}
|
||||
//
|
||||
// Check the switch operation is really successful or not.
|
||||
@@ -1166,7 +1165,10 @@ EmmcIdentification (
|
||||
Private->Slot[Slot].CardType = EmmcCardType;
|
||||
|
||||
Status = EmmcSetBusMode (PciIo, PassThru, Slot, Rca);
|
||||
|
||||
return Status;
|
||||
if (EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_ERROR, "EmmcSetBusMode: fails with %r\n", Status));
|
||||
}
|
||||
|
||||
return EFI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user