mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
motorola:qpnp-smbcharger-mmi delay first heartbeat 10 seconds
Try to delay first heartbeat 10 second to account for factory transient voltages. If there is a reverse boost that the heartbeat catches it will suspend the usb which can triger the factory kill if the vbus voltage goes below 2V. If the voltage then comes back and doesn't decay while shutting down it will get stuck during shutdown. Change-Id: I688d6ef211be2b56d0f398075011b7528d7f0e58 Signed-off-by: Curtis Porter <porterc@motorola.com> Reviewed-on: https://gerrit.mot.com/1535022 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Ling Jin <lingjin@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
07251708de
commit
83095fc65b
1 changed files with 3 additions and 3 deletions
|
|
@ -3597,7 +3597,7 @@ static void mmi_heartbeat_work(struct work_struct *work)
|
|||
mmi_basic_charge_sm(chip, &chg_stat);
|
||||
}
|
||||
|
||||
mmi_dbg(chip, "batt_mv %d, usb_mv %d, prev_usb_mv %d batt_ma %d\n",
|
||||
mmi_err(chip, "SMBMMI: batt_mv %d, usb_mv %d, prev_usb_mv %d batt_ma %d\n",
|
||||
chg_stat.batt_mv, chg_stat.usb_mv,
|
||||
prev_vbus_mv, chg_stat.batt_ma);
|
||||
|
||||
|
|
@ -4671,9 +4671,9 @@ static int smb_mmi_probe(struct platform_device *pdev)
|
|||
smb_mmi_create_debugfs(chip);
|
||||
cancel_delayed_work(&chip->heartbeat_work);
|
||||
schedule_delayed_work(&chip->heartbeat_work,
|
||||
msecs_to_jiffies(0));
|
||||
msecs_to_jiffies(10000));
|
||||
|
||||
mmi_info(chip, "SMBMMI probed successfully!\n");
|
||||
mmi_info(chip, "QPNP SMB MMI probed successfully!\n");
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue