This is a note to let you know that I've just added the patch titled power: supply: bq24190: Call power_supply_changed() after updating input current to the 6.3-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: power-supply-bq24190-call-power_supply_changed-after-updating-input-current.patch and it can be found in the queue-6.3 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 77c2a3097d7029441e8a91aa0de1b4e5464593da Mon Sep 17 00:00:00 2001 From: Hans de Goede <hdegoede@xxxxxxxxxx> Date: Sat, 15 Apr 2023 20:23:41 +0200 Subject: power: supply: bq24190: Call power_supply_changed() after updating input current From: Hans de Goede <hdegoede@xxxxxxxxxx> commit 77c2a3097d7029441e8a91aa0de1b4e5464593da upstream. The bq24192 model relies on external charger-type detection and once that is done the bq24190_charger code will update the input current. In this case, when the initial power_supply_changed() call is made from the interrupt handler, the input settings are 5V/0.5A which on many devices is not enough power to charge (while the device is on). On many devices the fuel-gauge relies in its external_power_changed callback to timely signal userspace about charging <-> discharging status changes. Add a power_supply_changed() call after updating the input current. This allows the fuel-gauge driver to timely recheck if the battery is charging after the new input current has been applied and then it can immediately notify userspace about this. Fixes: 18f8e6f695ac ("power: supply: bq24190_charger: Get input_current_limit from our supplier") Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx> Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/power/supply/bq24190_charger.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/power/supply/bq24190_charger.c +++ b/drivers/power/supply/bq24190_charger.c @@ -1262,6 +1262,7 @@ static void bq24190_input_current_limit_ bq24190_charger_set_property(bdi->charger, POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT, &val); + power_supply_changed(bdi->charger); } /* Sync the input-current-limit with our parent supply (if we have one) */ Patches currently in stable-queue which might be from hdegoede@xxxxxxxxxx are queue-6.3/power-supply-leds-fix-blink-to-led-on-transition.patch queue-6.3/power-supply-bq25890-call-power_supply_changed-after-updating-input-current-or-voltage.patch queue-6.3/power-supply-bq27xxx-ensure-power_supply_changed-is-called-on-current-sign-changes.patch queue-6.3/power-supply-bq27xxx-move-bq27xxx_battery_update-down.patch queue-6.3/platform-x86-intel-ifs-annotate-work-queue-on-stack-so-object-debug-does-not-complain.patch queue-6.3/power-supply-bq25890-fix-external_power_changed-race.patch queue-6.3/power-supply-bq27xxx-fix-i2c-irq-race-on-remove.patch queue-6.3/power-supply-bq27xxx-fix-bq27xxx_battery_update-race-condition.patch queue-6.3/power-supply-bq27xxx-add-cache-parameter-to-bq27xxx_battery_current_and_status.patch queue-6.3/power-supply-bq27xxx-fix-poll_interval-handling-and-races-on-remove.patch queue-6.3/power-supply-bq24190-call-power_supply_changed-after-updating-input-current.patch queue-6.3/platform-x86-isst-remove-8-socket-limit.patch queue-6.3/power-supply-axp288_fuel_gauge-fix-external_power_changed-race.patch queue-6.3/power-supply-bq27xxx-after-charger-plug-in-out-wait-0.5s-for-things-to-stabilize.patch