summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlijuang <lijuang@codeaurora.org>2019-05-23 15:40:34 +0800
committerlijuang <lijuang@codeaurora.org>2019-05-31 11:00:16 +0800
commita067ee0514e3fc162f6e5c7448de6c11982760fc (patch)
treea3268972c94b203770017025882eaab8b6ea06ee
parent0e3538f8dba800d90bf6fb8ac6b54d6e8083b2fd (diff)
QcomModulePkg: Correct the Lun info for eMMC device
For eMMC device, it will be treated as UFS device if the parameter is got from PC is not correct that will cause the GPT partition update fail. Change-Id: I8b2d0757be2646b2e0c8611efb9aae28b33a9e03
-rw-r--r--QcomModulePkg/Library/FastbootLib/FastbootCmds.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/QcomModulePkg/Library/FastbootLib/FastbootCmds.c b/QcomModulePkg/Library/FastbootLib/FastbootCmds.c
index 04b8fae2a4..2a183df7ae 100644
--- a/QcomModulePkg/Library/FastbootLib/FastbootCmds.c
+++ b/QcomModulePkg/Library/FastbootLib/FastbootCmds.c
@@ -1626,6 +1626,9 @@ CmdFlash (IN CONST CHAR8 *arg, IN VOID *data, IN UINT32 sz)
UfsBootLun = 0x1;
UfsGetSetBootLun (&UfsBootLun, FALSE); /* False = Set */
}
+ } else if (!AsciiStrnCmp (BootDeviceType, "EMMC", AsciiStrLen ("EMMC"))) {
+ Lun = NO_LUN;
+ LunSet = FALSE;
}
DEBUG ((EFI_D_INFO, "Attemping to update partition table\n"));
DEBUG ((EFI_D_INFO, "*************** Current partition Table Dump Start "