+55
−10
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Currently, we handle the USB insertion through source detect
(SRC_DET) interrupt and USB removal through undervolt (UV)
interrupt.
In certain cases where the VBUS drops less than 5V (say 4.4 V)
and VBAT is at 4.3 V, PHY disconnects. It will never get
reasserted since the VBUS doesn't drop below 1V and goes
back to 5V.
To handle such corner cases, handle the USB removal for
DCP/HVDCP on the falling edge of UV interrupt and on the
falling edge of SRC_DET interrupt for CDP/SDP. Handle
the USB insertion on the rising edge of SRC_DET interrupt.
CRs-Fixed: 794058
Change-Id: Ied5f1016d1dfe040902224fca2b30a580a4dad88
Signed-off-by:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>