Commit 5f160c51 authored by spiiroin's avatar spiiroin

[udev] Handle high voltage dedicated chargers. JB#39319

While usb-moded correctly goes to charging-only mode when/if it sees
power supply type go through USB_DCP -> USB_HVDCP, it still complains
about unhandled USB_HVDCP type.

Explicitly treat receiving of high voltage dedicated charger profile
events as a charger connection.
Signed-off-by: spiiroin's avatarSimo Piiroinen <simo.piiroinen@jollamobile.com>
parent ddc3b5dd
......@@ -447,7 +447,9 @@ static void udev_parse(struct udev_device *dev, bool initial)
else
schedule_cable_connection_timeout();
}
else if (!strcmp(tmp, "USB_DCP")) {
else if (!strcmp(tmp, "USB_DCP") ||
!strcmp(tmp, "USB_HVDCP") ||
!strcmp(tmp, "USB_HVDCP_3")) {
setup_charger_connection();
}
else if( !strcmp(tmp, "Unknown")) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment