USB: OTG: msm: disallow PHY retention with dedicated charger connected
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 <e4a0348e45a0df0ba79f6b06c66df8ae7aca44a4@codeaurora.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas