]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/SdMmcPciHcDxe: Fix SdMmcMmcLegacy bus timing handling
authorAlbecki, Mateusz <mateusz.albecki@intel.com>
Thu, 26 Sep 2019 14:27:44 +0000 (22:27 +0800)
committerHao A Wu <hao.a.wu@intel.com>
Sun, 29 Sep 2019 01:13:24 +0000 (09:13 +0800)
commit76e1e5631f1ad9b2275ff31fefe83258c0812b3d
tree62e13c1c69c0c20c19d37bf65e224c5a8234849c
parenta8c1fc70dbd56e367464c976ef8aa43e9349b87d
MdeModulePkg/SdMmcPciHcDxe: Fix SdMmcMmcLegacy bus timing handling

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2218

There is a bug in current driver code that makes
it impossible for it to work with devices that
only work in legacy speed mode since the function
EmmcSwitchToHighSpeed will return with EFI_INVALID_PARAMETER
for such bus mode. Since the logic in that function will
work well for SdMmcMmcLegacy this patch just allows
to call this function with SdMmcMmcLegacy bus mode.

Signed-off-by: Mateusz Albecki <mateusz.albecki@intel.com>
Reviewed-by: Hao A Wu <hao.a.wu@intel.com>
Tested-by: Hao A Wu <hao.a.wu@intel.com>
Tested-by: Marcin Wojtas <mw@semihalf.com>
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/EmmcDevice.c