From 2d00f1c06ffe13424846b359a60ba29f8e0d967b Mon Sep 17 00:00:00 2001 From: zhanggc10 Date: Fri, 20 Oct 2023 11:08:40 +0800 Subject: [PATCH] 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 Reviewed-on: https://gerrit.mot.com/2772999 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Reviewed-by: Reviewed-by: Bolei Shang Reviewed-by: Reviewed-by: Long Cheng Reviewed-by: Reviewed-by: Zhichao Chen Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- arch/arm64/Kconfig | 6 ++++++ arch/arm64/configs/vendor/ext_config/moto-holi-fogo.config | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index fd5991f6ce74..6796c2f08a44 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -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 diff --git a/arch/arm64/configs/vendor/ext_config/moto-holi-fogo.config b/arch/arm64/configs/vendor/ext_config/moto-holi-fogo.config index 3ffe6b43c919..0710193ab5c6 100644 --- a/arch/arm64/configs/vendor/ext_config/moto-holi-fogo.config +++ b/arch/arm64/configs/vendor/ext_config/moto-holi-fogo.config @@ -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 \ No newline at end of file