From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from smarthost01a.sbp.mail.zen.net.uk (smarthost01a.sbp.mail.zen.net.uk [212.23.1.1])
 by mx.groups.io with SMTP id smtpd.web11.39278.1643663064198727443
 for <devel@edk2.groups.io>;
 Mon, 31 Jan 2022 13:04:24 -0800
Authentication-Results: mx.groups.io;
 dkim=missing; spf=permerror, err=parse error for token &{10 18 sdn.klaviyomail.com}: permanent DNS error (domain: starlabs.systems, ip: 212.23.1.1, mailfrom: sean@starlabs.systems)
Received: from [217.155.46.38] (helo=sean-StarBook.lan)
	by smarthost01a.sbp.mail.zen.net.uk with esmtp (Exim 4.90_1)
	(envelope-from <sean@starlabs.systems>)
	id 1nEdqY-000226-7A; Mon, 31 Jan 2022 21:04:22 +0000
From: "Sean Rhodes" <sean@starlabs.systems>
To: devel@edk2.groups.io
Cc: Matt DeVillier <matt.devillier@gmail.com>
Subject: [PATCH 43/43] SdMmcPciDxe: Reduce timeout for SD card reset
Date: Mon, 31 Jan 2022 21:04:20 +0000
Message-Id: <1f59cc3bceee114a9659fd706a53b0539ff89117.1643663051.git.sean@starlabs.systems>
X-Mailer: git-send-email 2.32.0
In-Reply-To: <9dd14fc91c174eae87fd122c7ac70073a363527f.1643663051.git.sean@starlabs.systems>
References: <9dd14fc91c174eae87fd122c7ac70073a363527f.1643663051.git.sean@starlabs.systems>
MIME-Version: 1.0
X-Originating-smarthost01a-IP: [217.155.46.38]
Feedback-ID: 217.155.46.38
Content-Transfer-Encoding: quoted-printable

From: Matt DeVillier <matt.devillier@gmail.com>

Previous 1s timeout causeed stalls on boot splash with no benefit.
Reduced to 100ms and no interruptions to boot when no SD card inserted.

Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
---
 MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h b/MdeModule=
Pkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h
index 85e09cf114..81fae8e262 100644
--- a/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h
+++ b/MdeModulePkg/Bus/Pci/SdMmcPciHcDxe/SdMmcPciHcDxe.h
@@ -49,7 +49,7 @@ extern EDKII_SD_MMC_OVERRIDE  *mOverride;
 //=0D
 // Generic time out value, 1 microsecond as unit.=0D
 //=0D
-#define SD_MMC_HC_GENERIC_TIMEOUT  1 * 1000 * 1000=0D
+#define SD_MMC_HC_GENERIC_TIMEOUT  1 * 1000 * 100=0D
 =0D
 //=0D
 // SD/MMC async transfer timer interval, set by experience.=0D
--=20
2.32.0