usb: dwc3-msm: Ensure reset if h/w is out of lpm without any events

In a case where the core is resumed by a child device
after the dwc3-msm driver has processed the disconnect
and entered lpm, there is a possiblity that PMIC is
running APSD for the next connect during this.
Once PMIC notified the driver of connect, the core and
the PHYs are not reset again resulting in erratic
behavior.
Fix this by setting the WAIT_FOR_LPM whenever the
dwc3_msm_resume is called without any events.

Change-Id: I19f00188595c9b2e620be38192a47a902d6b0beb
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
1 file changed