This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[power-udev] Handle high voltage dedicated chargers. Fixes JB#39319
When high voltage charger is connected, initially kernel reports USB_DCP and then switches to USB_HVDCP. As the high voltage dedicated charger profile types are not known to statefs and the value of OnBattery property is derived from the charger type, the observers of statefs properties see what looks like a charger connect followed almost immediately by charger disconnect. When kernel reports either USB_HVDCP or USB_HVDCP_3 charger type, expose it as "hvdcp" charger type from statefs udev provider. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information