summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2018-04-16 14:49:25 +0800
committerGitHub <noreply@github.com>2018-04-16 14:49:25 +0800
commitad746d3044f67cb87359371efb5fdb64965c2815 (patch)
treeb15e140fd0c95f75a5f558edaadbb8166c65b868
parent4924810371abe70285a1f8545baeca75df80efef (diff)
parentda058e815271df4d3b520fadb5300ad7c66c86f3 (diff)
downloadedk2-ad746d3044f67cb87359371efb5fdb64965c2815.tar.gz
Merge pull request #69 from hzhuang1/fix_ufs_hang_2
MdeModulePkg/UfsPassThruDxe: avoid ufs hang by adding delay
-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.
//