Skip to content

Commit 4ea4f34

Browse files
pavelmachekgregkh
authored andcommitted
cpcap-charger: generate events for userspace
commit fd10606 upstream. The driver doesn't generate uevents on charger connect/disconnect. This leads to UPower not detecting when AC is on or off... and that is bad. Reported by Arthur D. on github ( maemo-leste/bugtracker#206 ), thanks to Merlijn Wajer for suggesting a fix. Cc: stable@kernel.org Signed-off-by: Pavel Machek <pavel@ucw.cz> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent ce02d82 commit 4ea4f34

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/power/supply/cpcap-charger.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,7 @@ static void cpcap_usb_detect(struct work_struct *work)
458458
goto out_err;
459459
}
460460

461+
power_supply_changed(ddata->usb);
461462
return;
462463

463464
out_err:

0 commit comments

Comments
 (0)