From 67fc4700621441b1f21e098f7d7af5942e4fd2e8 Mon Sep 17 00:00:00 2001 From: zhucc2 Date: Fri, 17 Sep 2021 16:28:12 +0800 Subject: [PATCH] arm64/config: change spm-level to 3 for ufs PROPAGATED_from (CR) from qcom's suggestion , change the ufs spm-level to 3. it maybe improve stability of ufs. spm-level 3: UFS_SLEEP_PWR_MODE, UIC_LINK_HIBERN8_STATE spm-level 5: UFS_POWERDOWN_PWR_MODE, UIC_LINK_OFF_STATE And after set spm_lvl as 3, the ufs will avoid reinit/probe during resume. thus no uevent sent out, hvdcp will not wakeup yet. Change-Id: I48cf6626d13f1ce563230d0bdb87082d6d5a0fb5 Reviewed-on: https://gerrit.mot.com/2069877 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-moto-common-overlay.dtsi | 4 ++++ qcom/blair-pm6125-moto-common-overlay.dtsi | 4 ++++ qcom/holi-pm6125-moto-common-overlay.dtsi | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index 104bbab4f5dc..3011bfeb592d 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -185,3 +185,7 @@ status = "ok"; }; }; + +&ufshc_mem { + spm-level = <3>; +}; diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index 917ffc6ede3d..bdc576be5206 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -316,3 +316,7 @@ &socd_trip { temperature = <95>; }; + +&ufshc_mem { + spm-level = <3>; +}; diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 50e0408fda13..816da99a7f60 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -326,3 +326,7 @@ &socd_trip { temperature = <95>; }; + +&ufshc_mem { + spm-level = <3>; +};