From dad532f85adbfb61c05d8047c61b3ccb9c32056f Mon Sep 17 00:00:00 2001 From: Cesar Santos Date: Tue, 14 Jan 2020 18:16:35 -0300 Subject: [PATCH] modules: power: Change Heartbeat delay for fast mitigation Original heartbeat delay was 60s, which makes thermal mitigation while charging too slow. Changing it to 5s makes it notice battery temperature change and limit charging current and voltage much faster. Change-Id: Ib43dba3db18f3509afe1ab448d5f35c9bd33a16e Signed-off-by: Cesar Santos Reviewed-on: https://gerrit.mot.com/1483570 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Ling Jin 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 cc0c98f86339..78897eca5bbf 100644 --- a/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c +++ b/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c @@ -171,7 +171,7 @@ enum { #define WEAK_CHARGER_WAIT 30000 #define EVENT_WEAK_CHARGER_WAIT 0 -#define HEARTBEAT_DELAY_MS 60000 +#define HEARTBEAT_DELAY_MS 5000 #define HEARTBEAT_DUAL_DELAY_MS 10000 #define HEARTBEAT_FACTORY_MS 1000