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>
This commit is contained in:
Haojian Zhuang 2017-01-16 20:22:54 +08:00 committed by Feng Tian
parent 619ad10f3a
commit a2e3feb687
1 changed files with 2 additions and 2 deletions

View File

@ -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;