提交 4ea4f347 编写于 作者: P Pavel Machek 提交者: Greg Kroah-Hartman

cpcap-charger: generate events for userspace

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: NPavel Machek <pavel@ucw.cz>
Acked-by: NTony Lindgren <tony@atomide.com>
Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ce02d82c
...@@ -458,6 +458,7 @@ static void cpcap_usb_detect(struct work_struct *work) ...@@ -458,6 +458,7 @@ static void cpcap_usb_detect(struct work_struct *work)
goto out_err; goto out_err;
} }
power_supply_changed(ddata->usb);
return; return;
out_err: out_err:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册