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

Commit 096f7a2d authored by Manu Gautam's avatar Manu Gautam
Browse files

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: I266e9dced083b8cb30a960529da54c529b922faa
Signed-off-by: default avatarManu Gautam <mgautam@codeaurora.org>
parent 71ee1119
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2771,6 +2771,7 @@ static void msm_otg_sm_work(struct work_struct *w)
				/* 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