mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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:
parent
eca836551e
commit
a3810fae2e
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue