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

Skip to content
Commit a1bb37d2 authored by Azhar Shaikh's avatar Azhar Shaikh
Browse files

usb: dwc3: otg: Avoid race condition between gadget start and PHY RESUME



USB cable connection event can race with android gadget register routine
causing pm usage count to zero. This will keep controller driver in
suspend (clocks off) and will result in NULL pointer exception when
android-gadget tries to enumerate using pull-up. Avoid this race by simply
incrementing the pm usage count in case of usb cable connection phy
resume event.

CRs-fixed: 678197
Change-Id: Iaf4154918905e17b2df421c356abb3e3364c9cb9
Signed-off-by: default avatarAzhar Shaikh <azhars@codeaurora.org>
parent b2493d05
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