lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 22 Mar 2019 12:16:21 +0100
From:   Greg Kroah-Hartman <>
Cc:     Greg Kroah-Hartman <>,,,
        Pavel Machek <>, Tony Lindgren <>,
        Sebastian Reichel <>
Subject: [PATCH 4.14 153/183] cpcap-charger: generate events for userspace

4.14-stable review patch.  If anyone has any objections, please let me know.


From: Pavel Machek <>

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

Reported by Arthur D. on github ( ), thanks to
Merlijn Wajer for suggesting a fix.

Signed-off-by: Pavel Machek <>
Acked-by: Tony Lindgren <>
Signed-off-by: Sebastian Reichel <>
Signed-off-by: Greg Kroah-Hartman <>

 drivers/power/supply/cpcap-charger.c |    1 +
 1 file changed, 1 insertion(+)

--- a/drivers/power/supply/cpcap-charger.c
+++ b/drivers/power/supply/cpcap-charger.c
@@ -458,6 +458,7 @@ static void cpcap_usb_detect(struct work
 			goto out_err;
+	power_supply_changed(ddata->usb);

Powered by blists - more mailing lists