From 4e2ac8062cbe907be9fbf6b2e6f1fc947690c4de Mon Sep 17 00:00:00 2001 From: "Albecki, Mateusz" Date: Tue, 14 Jan 2020 20:05:27 +0800 Subject: [PATCH] MdeModulePkg/SdMmcPciHcDxe: Fix DAT lane SW reset 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 Cc: Marcin Wojtas Cc: Zhichao Gao Cc: Liming Gao Signed-off-by: Mateusz Albecki Reviewed-by: Hao A Wu --- MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c index d1e60938f9..b469ee91ac 100644 --- a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c +++ b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHci.c @@ -7,7 +7,7 @@ It would expose EFI_SD_MMC_PASS_THRU_PROTOCOL for upper layer use. Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. - Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.
+ Copyright (c) 2015 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent **/ @@ -2229,7 +2229,7 @@ SdMmcCheckTrbResult ( if ((IntStatus & 0x0F) != 0) { SwReset |= BIT1; } - if ((IntStatus & 0xF0) != 0) { + if ((IntStatus & 0x70) != 0) { SwReset |= BIT2; } -- 2.39.2