diff options
author | Jenny Ho <hsiufangho@google.com> | 2023-04-25 21:29:03 +0800 |
---|---|---|
committer | Jenny Ho <hsiufangho@google.com> | 2023-10-23 02:27:16 +0000 |
commit | bc6c73d140d139e1321641bbce55c336d1fcf7b6 (patch) | |
tree | f6919d8928fa832709030430dbd3bd2b6668f524 | |
parent | 3349249f47e20ee43ca35771c564fcedc451f980 (diff) | |
download | bms-bc6c73d140d139e1321641bbce55c336d1fcf7b6.tar.gz |
max1720x_battery: Do not force model reload when POR is detected
Additional interruptions may occur during model loading.
Have the max1720x_model_reload function check status and version
to decide whether to run model_work
Bug: 298175672
Change-Id: Ibd7062a591a246e2a8f3594508a1f0c8d7e89824
Signed-off-by: Jenny Ho <hsiufangho@google.com>
-rw-r--r-- | max1720x_battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/max1720x_battery.c b/max1720x_battery.c index ec00320..fc3d180 100644 --- a/max1720x_battery.c +++ b/max1720x_battery.c @@ -2923,7 +2923,7 @@ static irqreturn_t max1720x_fg_irq_thread_fn(int irq, void *obj) fg_status, chip->model_reload); /* trigger model load if not on-going */ if (chip->model_reload != MAX_M5_LOAD_MODEL_REQUEST) { - err = max1720x_model_reload(chip, true); + err = max1720x_model_reload(chip, false); if (err < 0) fg_status_clr &= ~MAX1720X_STATUS_POR; } |