forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/power/supply/power_supply_leds.c
....@@ -34,8 +34,9 @@
3434 led_trigger_event(psy->charging_full_trig, LED_FULL);
3535 led_trigger_event(psy->charging_trig, LED_OFF);
3636 led_trigger_event(psy->full_trig, LED_FULL);
37
- led_trigger_event(psy->charging_blink_full_solid_trig,
38
- LED_FULL);
37
+ /* Going from blink to LED on requires a LED_OFF event to stop blink */
38
+ led_trigger_event(psy->charging_blink_full_solid_trig, LED_OFF);
39
+ led_trigger_event(psy->charging_blink_full_solid_trig, LED_FULL);
3940 break;
4041 case POWER_SUPPLY_STATUS_CHARGING:
4142 led_trigger_event(psy->charging_full_trig, LED_FULL);