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:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment