sec_mmi: add delay if power supply off

To meet IC power on sequence, if IC power is not always on, need to wait
for 70ms before checking IC status. If no delay added, I2C communication
may fail sometimes. This is copied from sec_ts_probe.

Change-Id: I85b3a8a2b444ea2e3e77a60e2fcc45c8b976bc6c
Signed-off-by: haojl2 <haojl2@motorola.com>
Reviewed-on: https://gerrit.mot.com/1489000
Reviewed-by: Konstantin Makariev <kmakariev@motorola.com>
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
This commit is contained in:
haojl2 2020-01-28 13:39:56 +08:00 • committed by Jialei Hao
commit a3810fae2e

View file

@ -672,6 +672,9 @@ static int sec_mmi_wait_for_ready(struct device *dev) {
return -ENODEV;
}
if (!ts->plat_data->regulator_boot_on)
sec_ts_delay(70);
return sec_ts_wait_for_ready(ts, SEC_TS_ACK_BOOT_COMPLETE);
}