MdeModulePkg/SdMmcPciHcDxe: Add retries for sync commands
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1140 To increase the resiliency driver will now attempt to retry the commands that failed due to the CRC error up to 5 times. This should address the problems with the commands that fail due to random condition on links. This should also help the boards on which CMD13 is particularly unstable after switching the link frequency. 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:
committed by
mergify[bot]
parent
a22f4c34df
commit
c67617f3c6
@@ -1683,6 +1683,7 @@ SdMmcCreateTrb (
|
||||
Trb->Event = Event;
|
||||
Trb->Started = FALSE;
|
||||
Trb->Timeout = Packet->Timeout;
|
||||
Trb->Retries = SD_MMC_TRB_RETRIES;
|
||||
Trb->Private = Private;
|
||||
|
||||
if ((Packet->InTransferLength != 0) && (Packet->InDataBuffer != NULL)) {
|
||||
|
Reference in New Issue
Block a user