Android 14.0.0 Release 0.66 (AP1A.240405.002.A1,felix)
max1720x_battery: fix model loading retry process

model load work runs when model_reload >= MAX_M5_LOAD_MODEL_REQUEST,
accumulating model_reload is a reasonable approach. The POR bit is
only cleared when the model is loaded successfully

Bug: 313831863
Change-Id: I0125cd4b4710fa6c5ce832529b5c404445def545
Signed-off-by: Jenny Ho <hsiufangho@google.com>
(cherry-pick from commit ba5886160fe4dc8660cfd1f3bc148139539eda7b)
2 files changed