mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
power/charger: add walkaround to fix REGN side effect
The REGN wake-up time is 500ms, and REGN will provide power for CBL_PWR_N, so press PWR key will make system reboot all the time. This walkaround is add 500ms at the end of rt9467 shutdown function to create a release window for I2C of rt9467. Change-Id: Ib428c31a718ac27bfc0ce077d5e7aa481e7fe648 Reviewed-on: https://gerrit.mot.com/2067201 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
8daf230501
commit
c5cc7422a4
1 changed files with 2 additions and 0 deletions
|
|
@ -3273,6 +3273,8 @@ static void rt9467_shutdown(struct i2c_client *client)
|
|||
ret = rt9467_sw_reset(info);
|
||||
if (ret < 0)
|
||||
pr_notice("%s: sw reset fail\n", __func__);
|
||||
// MMI_STOPSHIP <PMIC>: add delay to power off once pressing PWR key with EVT board
|
||||
msleep(500);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue