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);
|
||||
return;
|
||||
}
|
||||
}
|
||||
if ((Trb != NULL) && (Status != EFI_NOT_READY)) {
|
||||
} else if ((Trb != NULL) && (Status == EFI_CRC_ERROR) && (Trb->Retries > 0)) {
|
||||
Trb->Retries--;
|
||||
Trb->Started = FALSE;
|
||||
} else if ((Trb != NULL)) {
|
||||
RemoveEntryList (Link);
|
||||
Trb->Packet->TransactionStatus = Status;
|
||||
TrbEvent = Trb->Event;
|
||||
|
Loading…
x
Reference in New Issue
Block a user