summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Bus/Ufs/UfsPassThruDxe
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2017-01-16 20:22:54 +0800
committerFeng Tian <feng.tian@intel.com>2017-01-20 09:11:23 +0800
commita2e3feb687c9ee13d17fd319bf58f6e752225495 (patch)
treec9cae4b873a9ec7961ed9596d73d83199be5ee45 /MdeModulePkg/Bus/Ufs/UfsPassThruDxe
parent619ad10f3af2774880867dd638a8016d3181b516 (diff)
downloadedk2-platforms-a2e3feb687c9ee13d17fd319bf58f6e752225495.tar.xz
MdeModuelPkg/UfsPassThruDxe: fix to identify 32 bits address mode
When UFS_HC_CAP_64ADDR bit is set, it means 64-bit address, not 32-bit address. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'MdeModulePkg/Bus/Ufs/UfsPassThruDxe')
-rw-r--r--MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
index 3bd6dade90..2b95f809c7 100644
--- a/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
+++ b/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruHci.c
@@ -1749,9 +1749,9 @@ UfsAllocateAlignCommonBuffer (
EDKII_UFS_HOST_CONTROLLER_PROTOCOL *UfsHc;
if ((Private->Capabilities & UFS_HC_CAP_64ADDR) == UFS_HC_CAP_64ADDR) {
- Is32BitAddr = TRUE;
- } else {
Is32BitAddr = FALSE;
+ } else {
+ Is32BitAddr = TRUE;
}
UfsHc = Private->UfsHostController;