]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
cpcap-charger: generate events for userspace
authorPavel Machek <pavel@ucw.cz>
Thu, 27 Dec 2018 19:52:21 +0000 (20:52 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 25 Mar 2019 15:47:45 +0000 (10:47 -0500)
commit6c4c3466e52e4afa1d38d7eb4589bc96bcc8b0a9
treeec4d2745f611aa4b5836670599b31c66fd0185e1
parent5eabf7f544c1231ad186fb30dfaa9ab3eae4c45b
cpcap-charger: generate events for userspace

BugLink: https://bugs.launchpad.net/bugs/1821607
commit fd10606f93a149a9f3d37574e5385b083b4a7b32 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>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/power/supply/cpcap-charger.c