hc
2023-11-06 9df731a176aab8e03b984b681b1bea01ccff6644
u-boot/drivers/power/charge_animation.c
....@@ -499,6 +499,7 @@
499499 struct charge_animation_priv *priv = dev_get_priv(dev);
500500 struct udevice *fg = priv->fg;
501501 int voltage, soc, charging = 1;
502
+ int first_poll_fg = 1;
502503 static int timer_initialized;
503504
504505 voltage = fuel_gauge_get_voltage(fg);
....@@ -506,6 +507,11 @@
506507 return -EINVAL;
507508
508509 while (voltage < pdata->low_power_voltage + 50) {
510
+ if (!first_poll_fg)
511
+ mdelay(FUEL_GAUGE_POLL_MS);
512
+
513
+ first_poll_fg = 0;
514
+
509515 /* Check charger online */
510516 charging = fg_charger_get_chrg_online(dev);
511517 if (charging <= 0) {