mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
cpcap-charger: generate events for userspace
commit fd10606f93 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 (
https://github.com/maemo-leste/bugtracker/issues/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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ce02d82c4e
commit
4ea4f34766
@@ -458,6 +458,7 @@ static void cpcap_usb_detect(struct work_struct *work)
|
||||
goto out_err;
|
||||
}
|
||||
|
||||
power_supply_changed(ddata->usb);
|
||||
return;
|
||||
|
||||
out_err:
|
||||
|
||||
Reference in New Issue
Block a user