mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
cpcap-charger: generate events for userspace
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: [email protected] Signed-off-by: Pavel Machek <[email protected]> Acked-by: Tony Lindgren <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
19836a1b8e
commit
fd10606f93
1 changed files with 1 additions and 0 deletions
|
|
@ -458,6 +458,7 @@ static void cpcap_usb_detect(struct work_struct *work)
|
|||
goto out_err;
|
||||
}
|
||||
|
||||
power_supply_changed(ddata->usb);
|
||||
return;
|
||||
|
||||
out_err:
|
||||
|
|
|
|||
Loading…
Reference in a new issue