usb: phy: msm: Initialize B_SESS_VLD to 0 by default
Some PMICs/chargers don't report VBUS state when booting with
the USB cable disconnected. In this case, the OTG state machine
may get stuck as its waits indefinitely for the initial
notification which won't happen until a cable is finally inserted.
Fix this by adding a 5 scond timeout to the wait_for_competion
call so that the driver will assume no cable is initially present.
Change-Id: I206b02471a93ef009e0ea63fbc98e63fd8c19833
Signed-off-by:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment