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

Skip to content
Commit 82af20d9 authored by Jack Pham's avatar Jack Pham
Browse files

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: default avatarJack Pham <jackp@codeaurora.org>
parent 61a09d4a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment