summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2018-04-16 14:42:27 +0800
committerHaojian Zhuang <haojian.zhuang@linaro.org>2018-04-16 14:47:00 +0800
commitda058e815271df4d3b520fadb5300ad7c66c86f3 (patch)
treeb15e140fd0c95f75a5f558edaadbb8166c65b868
parent4924810371abe70285a1f8545baeca75df80efef (diff)
downloadedk2-da058e815271df4d3b520fadb5300ad7c66c86f3.tar.gz
MdeModulePkg/UfsPassThruDxe: avoid ufs hang by adding delay
When UEFI is built in release mode, it's always hang on HiKey960 platform without this patch. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
-rw-r--r--MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
index e71be6afc..335bd99c8 100644
--- a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
+++ b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
@@ -1195,6 +1195,7 @@ UfsRwFlags (
ASSERT (QueryResp != NULL);
CmdDescSize = Trd->RuO * sizeof (UINT32) + Trd->RuL * sizeof (UINT32);
+ MicroSecondDelay (100000);
//
// Start to execute the transfer request.
//
@@ -1362,6 +1363,7 @@ UfsExecNopCmds (
ASSERT (NopInUpiu != NULL);
CmdDescSize = Trd->RuO * sizeof (UINT32) + Trd->RuL * sizeof (UINT32);
+ MicroSecondDelay (100000);
//
// Start to execute the transfer request.
//