mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
fg: Trigger POR in factory mode or factory software
Check for factory mode or factory software and reset on probe. Change-Id: I46ad960219739ff6412f77bc8947a25690da3488 Signed-off-by: Drew Abbott <drewa@motorola.com> Reviewed-on: https://gerrit.mot.com/1617379 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
8b5ac94545
commit
30b10c835d
1 changed files with 3 additions and 0 deletions
|
|
@ -2513,6 +2513,9 @@ static int bq_fg_probe(struct i2c_client *client,
|
|||
goto free_mem;
|
||||
}
|
||||
|
||||
if (bq->factory_mode || bq->factory_build)
|
||||
mmi_perform_reset(bq);
|
||||
|
||||
//mmi_fg_err(bq, "I2C adapter is %s\n", dev_name(&bq->client->adapter->dev));
|
||||
INIT_WORK(&bq->update_work, fg_update_bqfs_workfunc);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue