mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 21:54:27 +02:00
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:
parent
619ad10f3a
commit
a2e3feb687
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user