USB: phy-msm-usb: Fix bug in handling cable connect event during bootup
Currently USB driver waits for 5 sec timeout for PMIC driver
notifying initial cable connect status for first time otg_sm_work
is scheduled. If timeout happens, USB will enter low power mode.
If PMIC driver notifies initial cable status after timeout, USB
driver doesn't schedule sm_work to handle it. This results in USB
detection failure when target is booted with cable connected. Fix
this by scheduling sm_work in this case by having proper check.
CRs-Fixed: 688006
Change-Id: Ibef2e709c5b6b01c4e5b10daf36e7f0451372e9a
Signed-off-by:
Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Loading
Please register or sign in to comment