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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user