mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
MdeModulePkg/SdMmcPciHcDxe: Add retries for async commands
This patch adds retries for async execution for commands that failed due to the CRC errors. Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Marcin Wojtas <mw@semihalf.com> Cc: Zhichao Gao <zhichao.gao@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Mateusz Albecki <mateusz.albecki@intel.com> Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
This commit is contained in:
parent
c67617f3c6
commit
430743a1e8
@ -211,8 +211,10 @@ Done:
|
|||||||
gBS->SignalEvent (TrbEvent);
|
gBS->SignalEvent (TrbEvent);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
} else if ((Trb != NULL) && (Status == EFI_CRC_ERROR) && (Trb->Retries > 0)) {
|
||||||
if ((Trb != NULL) && (Status != EFI_NOT_READY)) {
|
Trb->Retries--;
|
||||||
|
Trb->Started = FALSE;
|
||||||
|
} else if ((Trb != NULL)) {
|
||||||
RemoveEntryList (Link);
|
RemoveEntryList (Link);
|
||||||
Trb->Packet->TransactionStatus = Status;
|
Trb->Packet->TransactionStatus = Status;
|
||||||
TrbEvent = Trb->Event;
|
TrbEvent = Trb->Event;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user