ACPI: AC: Properly notify powermanagement core about changes
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 26 May 2024 21:40:01 +0000 (23:40 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 May 2024 19:56:40 +0000 (21:56 +0200)
commitac62f52138f752d6c74adc6321e4996d84caf5bb
tree2f007cd58cef449199ce8f9c2e2ab526f1caabf0
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
ACPI: AC: Properly notify powermanagement core about changes

The powermanagement core does various actions when a powersupply changes.
It calls into notifiers, LED triggers, other power supplies and emits an uevent.

To make sure that all these actions happen properly call power_supply_changed().

Reported-by: Rajas Paranjpe <paranjperajas@gmail.com>
Closes: https://github.com/MrChromebox/firmware/issues/420#issuecomment-2132251318
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/ac.c
drivers/acpi/sbs.c