]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/SdMmcPciHcDxe: Fix DAT lane SW reset
authorAlbecki, Mateusz <mateusz.albecki@intel.com>
Tue, 14 Jan 2020 12:05:27 +0000 (20:05 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sun, 19 Jan 2020 01:58:00 +0000 (01:58 +0000)
Driver used to reset the DAT lane on a current error which
is not required according to SD specification(it's not going
to help). This patch will reset the DAT lane only on DAT
lane specific 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>
MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c

index d1e60938f965ac0305b3e5d66300ee337e96ec0b..b469ee91ac56a2abb5f6aa708066e015b9d185a3 100644 (file)
@@ -7,7 +7,7 @@
   It would expose EFI_SD_MMC_PASS_THRU_PROTOCOL for upper layer use.\r
 \r
   Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.\r
-  Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -2229,7 +2229,7 @@ SdMmcCheckTrbResult (
     if ((IntStatus & 0x0F) != 0) {\r
       SwReset |= BIT1;\r
     }\r
-    if ((IntStatus & 0xF0) != 0) {\r
+    if ((IntStatus & 0x70) != 0) {\r
       SwReset |= BIT2;\r
     }\r
 \r