Revert "MdeModulePkg/SdMmcPciHcDxe: Execute card detect only for RemovableSlot"

This reverts commit 4cd9d7fc6f.

card detect causes hangs on many devices with a directly-attached SD card reader
This commit is contained in:
Matt DeVillier
2018-11-01 11:41:27 -05:00
parent f6f2ff4904
commit cf2bde63a1

View File

@@ -672,18 +672,12 @@ SdMmcPciHcDriverBindingStart (
//
// Check whether there is a SD/MMC card attached
//
if (Private->Slot[Slot].SlotType == RemovableSlot) {
Status = SdMmcHcCardDetect (PciIo, Slot, &MediaPresent);
if (EFI_ERROR (Status) && (Status != EFI_MEDIA_CHANGED)) {
continue;
} else if (!MediaPresent) {
DEBUG ((
DEBUG_INFO,
"SdMmcHcCardDetect: No device attached in Slot[%d]!!!\n",
Slot
));
continue;
}
Status = SdMmcHcCardDetect (PciIo, Slot, &MediaPresent);
if (EFI_ERROR (Status) && (Status != EFI_MEDIA_CHANGED)) {
continue;
} else if (!MediaPresent) {
DEBUG ((DEBUG_INFO, "SdMmcHcCardDetect: No device attached in Slot[%d]!!!\n", Slot));
continue;
}
Status = SdMmcHcInitHost (Private, Slot);