]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SdMmc: Add break to avoid dead loop when polling OCR Reg
authorFeng Tian <feng.tian@intel.com>
Mon, 13 Mar 2017 03:20:41 +0000 (11:20 +0800)
committerFeng Tian <feng.tian@intel.com>
Mon, 13 Mar 2017 13:41:46 +0000 (21:41 +0800)
commitec86d28558d4f9f325926be1444b2d4ce32a0dc2
treef1569fa712cead79fe0ce47241707c92701692c2
parent1c3ac4b91efaa366d899cbe23451a0b2906d4d13
MdeModulePkg/SdMmc: Add break to avoid dead loop when polling OCR Reg

At worst case, OCR register may always not set BIT31. It will cause
original code enter to dead loop. Adding a break for such case.

Cc: Hao Wu <hao.a.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Hao Wu <hao.a.wu@intel.com>
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdDevice.c
MdeModulePkg/Bus/Sd/EmmcBlockIoPei/EmmcHci.c
MdeModulePkg/Bus/Sd/SdBlockIoPei/SdHci.c