Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ffedac17 authored by Jack Pham's avatar Jack Pham
Browse files

usb: dwc3-msm: Only set vbus_draw for SDP type



When gadget driver sets VBUS current draw, this should
only be applicable if the charger type is SDP. For
other downstream types, such as CDP, it can draw up up
to the maximum (1.5A) without having to follow the rules of
configured/suspended current limits. Further, with Power
Delivery role swap supported, it's possible the gadget (UFP)
is a power source, so vbus_draw() should be no-op'ed.

Change-Id: If7f8233a0eb2644e5534a51a4a4f65212d448382
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 0c8cf716
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment