mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
board : fuseipq: handle the error scenarios in fuseipq
1. QPFPROM error status is returned via the explicit message 2. scm call whose error status is returned via the u-boot function call return code Signed-off-by: Poovendhan Selvaraj <quic_poovendh@quicinc.com> Change-Id: I731e4190134d7ce56b3b71f69141b56c5bb91c69 (cherry picked from commit 809fbff531b42493aae0d2715682108f34d75fc4)
This commit is contained in:
parent
8038e4bccb
commit
45059c65ed
1 changed files with 6 additions and 6 deletions
|
|
@ -50,18 +50,18 @@ int do_fuseipq(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
|
|||
ret = qca_scm_fuseipq(SCM_SVC_FUSE, TZ_BLOW_FUSE_SECDAT,
|
||||
&fuseip, sizeof(fuseip));
|
||||
|
||||
if (ret || fuse_status)
|
||||
printf("%s: Error in QFPROM write (%d, %d)\n",
|
||||
__func__, ret, fuse_status);
|
||||
if (ret)
|
||||
printf("%s: Error in QFPROM write (%d)\n",
|
||||
__func__, ret);
|
||||
|
||||
if (fuse_status == FUSEPROV_SECDAT_LOCK_BLOWN)
|
||||
printf("Fuse already blown\n");
|
||||
else if (fuse_status == FUSEPROV_INVALID_HASH)
|
||||
printf("Invalid sec.dat\n");
|
||||
else if (fuse_status != FUSEPROV_SUCCESS)
|
||||
printf("Failed to Blow fuses");
|
||||
else if (fuse_status == FUSEPROV_SUCCESS)
|
||||
printf("Fuse Blow Success\n");
|
||||
else
|
||||
printf("Blow Success\n");
|
||||
printf("Fuse blow failed with err code : 0x%x\n", fuse_status);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue