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

Commit ef711490 authored by Manu Gautam's avatar Manu Gautam
Browse files

usb: dwc3: Program event buffer post block reset on stop_host



dwc3-msm driver performs block reset on stop_host, but performs
event buffer initialization only on lpm_exit. If lpm enter/exit
doesn't happen for back to back stop_host -> start_peripheral
then event buffer may not be programmed when calling
dwc3_gadget_restart. This results in dwc3 device mode failure.
Add event buffer setting after block reset on stop_host and
before calling gadget_restart to match with POR sequence.

CRs-fixed: 1038350
Change-Id: I466828a4f47f0c147df6826b8d3967a64e0ab6d2
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent d3e41c96
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -703,6 +703,7 @@ static void dwc3_core_exit_mode(struct dwc3 *dwc)
void dwc3_post_host_reset_core_init(struct dwc3 *dwc)
{
	dwc3_core_init(dwc);
	dwc3_event_buffers_setup(dwc);
	dwc3_gadget_restart(dwc);
	dwc3_notify_event(dwc, DWC3_CONTROLLER_POST_INITIALIZATION_EVENT, 0);
}