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:
gongsc1 2021-09-15 16:32:53 +08:00 • committed by Shicheng Gong
commit c5cc7422a4

View file

@ -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);
}
}