From 8f1226f4a5fef2c0794c9f1bcb0cc81ebb049c10 Mon Sep 17 00:00:00 2001 From: yanyh2 Date: Tue, 29 Jun 2021 13:02:39 +0800 Subject: [PATCH] Adjust the heartbeat time to 100s in discharging state 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. Change-Id: Ie076e5a3657a6c67ea7e9fdcefd3ef897bc81d02 Signed-off-by: yanyh2 Reviewed-on: https://gerrit.mot.com/1995180 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- drivers/power/mmi_charger/mmi_charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/mmi_charger/mmi_charger.c b/drivers/power/mmi_charger/mmi_charger.c index d353a7e0dce1..727357782df6 100644 --- a/drivers/power/mmi_charger/mmi_charger.c +++ b/drivers/power/mmi_charger/mmi_charger.c @@ -36,7 +36,7 @@ #define HEARTBEAT_DELAY_MS 60000 #define HEARTBEAT_FACTORY_MS 1000 -#define HEARTBEAT_DISCHARGE_MS 60000 +#define HEARTBEAT_DISCHARGE_MS 100000 #define HEARTBEAT_WAKEUP_INTRVAL_NS 70000000000 static bool debug_enabled;