USB: phy-msm-usb: Disable charger detection block on DISCONNECT
VBUS LOW (or DISCONNECT) may happen any time during charger detection
phase. If it happens before charger detection is complete then there
is a possibility of leaving IDP_SRC or VDP_SRC enabled which can
affect charger detection on next cable connect.
Change-Id: Ifde35112aeae294b1979255b9757d5e4fc62c8b0
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: ChandanaKishori Chiluveru <cchilu@codeaurora.org>
diff --git a/drivers/usb/otg/msm_otg.c b/drivers/usb/otg/msm_otg.c
index 15a9ab0..5f0f9fc 100644
--- a/drivers/usb/otg/msm_otg.c
+++ b/drivers/usb/otg/msm_otg.c
@@ -2683,6 +2683,7 @@
/* Turn off VDP_SRC */
ulpi_write(otg->phy, 0x2, 0x86);
}
+ msm_chg_block_off(motg);
msm_otg_reset(otg->phy);
/*
* There is a small window where ID interrupt