From 3cc6a1b4ff0e338ababc6ccc11f21322cde527e9 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Mon, 29 Nov 2021 11:22:31 +0530 Subject: [PATCH] charging: modify heartbeat cycle to 100s There is a case that will make the system suspend failing for mmi,charger wakelock and last for several minutes. The reason is that the system suspend has the same 60s request intervals as mmi charger heartbeat delay work, which will request mmi,charger wakelock. To avoid this two task run into resonating state, it's feasible to change the mmi charger heartbeat interval to 100s. Ported_from: (CR) Change-Id: Ic24bfc8a4291761f4681e0464e7afd94b9239bd2 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2129919 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yonghua Yan Reviewed-by: Vijayakumar Gn Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c b/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c index 2105712a35f8..8bb559ecda53 100755 --- a/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c +++ b/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c @@ -181,7 +181,7 @@ enum { #define HEARTBEAT_DUAL_DELAY_OCP_MS 1000 #define HEARTBEAT_OCP_SETTLE_CNT 7 #define HEARTBEAT_FACTORY_MS 1000 -#define HEARTBEAT_DISCHARGE_MS 60000 +#define HEARTBEAT_DISCHARGE_MS 100000 #define EMPTY_CYCLES 101