]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/Sd: update the sd detection logic
authorFeng Tian <feng.tian@intel.com>
Thu, 7 Apr 2016 08:28:56 +0000 (16:28 +0800)
committerFeng Tian <feng.tian@intel.com>
Thu, 21 Apr 2016 08:06:59 +0000 (16:06 +0800)
commit2e9107b87ed1350e2abe0bb777ef913a72eaff4a
treebbc0997c15f39275edf79e681810e9d087719bd0
parentb9953b65062015054821aaa631498b8fbd32e781
MdeModulePkg/Sd: update the sd detection logic

If there is no card presented before power on, there would
have no card change interrupt generated. This is a corner
case which can't be handled by old logic.

The patch is used to move card present detection in the front
of card change interrupt detection.

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/SdMmcPciHcDxe.c
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c