USB: OTG: msm: disallow PHY retention with dedicated charger connected
When USB dedicated charger is connected, low power mode(LPM) is allowed
after PMIC is notified about available current. As part of putting
hardware in LPM, PHY comparators are turned off and retention mode is
enabled. Due to this dedicated charger disconnect event is ignored.
PMIC VBUS notifications can be used to detect dedicated charger disconnect.
But spurious interrupts are occurring when PHY is in retention mode with
dedicated charger connected. Hence disallow PHY retention mode and use
PHY interrupts to detect dedicated charger disconnection.
Change-Id: I4d1181d3a80931f6d50ed78fea874f117c3a5a2a
Signed-off-by:
Pavankumar Kondeti <pkondeti@codeaurora.org>
Loading
Please register or sign in to comment