mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
power: Remove FG reset for factory bootmode
Factory agrees to manually reset FG'es rather than automatically in BL factory bootmode, in addition to factory_build. This will allow CFC test to charge batteries in COM and reboot with minimal charge capacity variation compared to re-init'ing FG at every boot. NO_PROP_NEEDED: TI FG for smith product only Change-Id: I6f0b2ceaeff5d4c20b01e154b48f9c54e22a9ef0 Signed-off-by: Bernie Moreno-BERNIEM <berniem@motorola.com> Reviewed-on: https://gerrit.mot.com/1689972 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
70c1f7b543
commit
502eafd250
1 changed files with 0 additions and 21 deletions
|
|
@ -283,8 +283,6 @@ struct bq_fg_chip {
|
|||
bool cfg_update_mode;
|
||||
bool itpor;
|
||||
bool device_initial;
|
||||
bool factory_mode;
|
||||
bool factory_build;
|
||||
|
||||
int seal_state; /* 0 - Full Access, 1 - Unsealed, 2 - Sealed */
|
||||
int batt_tte;
|
||||
|
|
@ -2356,20 +2354,6 @@ static int bq_parse_dt(struct bq_fg_chip *bq)
|
|||
return rc;
|
||||
}
|
||||
|
||||
static bool mmi_factory_check()
|
||||
{
|
||||
struct device_node *np = of_find_node_by_path("/chosen");
|
||||
bool factory = false;
|
||||
|
||||
if (!np)
|
||||
return factory;
|
||||
|
||||
factory = of_property_read_bool(np, "mmi,factory-cable");
|
||||
of_node_put(np);
|
||||
|
||||
return factory;
|
||||
}
|
||||
|
||||
static int mmi_perform_reset(struct bq_fg_chip *bq)
|
||||
{
|
||||
int rc = -1;
|
||||
|
|
@ -2440,8 +2424,6 @@ static int bq_fg_probe(struct i2c_client *client,
|
|||
bq->fake_soc = -EINVAL;
|
||||
bq->fake_temp = -EINVAL;
|
||||
|
||||
bq->factory_mode = mmi_factory_check();
|
||||
|
||||
if (bq->chip == BQ27426) {
|
||||
regs = bq27426_regs;
|
||||
} else {
|
||||
|
|
@ -2492,9 +2474,6 @@ 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