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

Commit d55fe957 authored by Hemant Kumar's avatar Hemant Kumar Committed by Mayank Rana
Browse files

usb: dwc3: Draw 100mA upon host bus reset



Upon host bus reset driver draws 0mA and switches
to higher value 900/500 mA after moving to configured
state. This causes a glitch in the led and battery icon
status. Hence request to draw 100mA to void the glitch.

Change-Id: Id570e427d40d08e29cad7cb74be426bf218d00ee
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent 5fa3893a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2751,7 +2751,7 @@ static void dwc3_gadget_reset_interrupt(struct dwc3 *dwc)
	dwc3_notify_event(dwc, DWC3_CONTROLLER_NOTIFY_OTG_EVENT);

	dwc3_usb3_phy_suspend(dwc, false);
	usb_gadget_vbus_draw(&dwc->gadget, 0);
	usb_gadget_vbus_draw(&dwc->gadget, 100);

	dwc3_reset_gadget(dwc);