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:
Manu Gautam <mgautam@codeaurora.org>
Loading
Please register or sign in to comment