fogo: Fix secure mode switch error (1/2)

Detail:
For secure camera case, sometime switch secure mode
fail,so add retry logic to fix it

Change-Id: Ie3185979ef6bc5c86ac45067ffd83c23a9e507c7
Signed-off-by: zhanggc10 <zhanggc10@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2772999
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: <zhangg10@motorola.com>
Reviewed-by: <mingjw1@motorola.com>
Reviewed-by: Bolei Shang <shangbl1@lenovo.com>
Reviewed-by: <liuzy55@motorola.com>
Reviewed-by: Long Cheng <chengl1@motorola.com>
Reviewed-by: <huqian4@motorola.com>
Reviewed-by: Zhichao Chen <chenzc2@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
zhanggc10 2023-10-20 11:08:40 +08:00 • committed by Xiaojun Ji
commit 2d00f1c06f
2 changed files with 7 additions and 0 deletions

View file

@ -1958,6 +1958,12 @@ config MOT_SENSOR_PRE_POWERUP
help
Enable it to power up and initialise early.
config MOT_SECURE_CAMERA
bool "For switch secure mode successfully"
default n
help
Enable it to fix switch secure mode error.
config MOT_USB_DEBUG_LOG
bool "For usb debug log in factiry SW"
default n

View file

@ -47,3 +47,4 @@ CONFIG_EROFS_FS_PCPU_KTHREAD=y
CONFIG_EROFS_FS_PCPU_KTHREAD_HIPRI=y
CONFIG_MOT_SENSOR_PRE_POWERUP=y
CONFIG_MMAP_READAROUND_LIMIT=y
CONFIG_MOT_SECURE_CAMERA=y