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

Commit 109af213 authored by Arumuga Durai A's avatar Arumuga Durai A
Browse files

usb: phy-msm: Avoid SE1 linestate after enabling DCD



During PHY based charger detection, SE1 linestate may occur
as driver enables current source first and then DP pull-down.
This may affect charger detection.Apply DM pulldown before
enabling current source on DP to  avoid SE1 state.

Change-Id: I01cb4ad4b97145c12d211c6b2c9035f6a9953d9b
Signed-off-by: default avatarArumuga Durai A <cadurai@codeaurora.org>
parent fd64e02a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2403,10 +2403,10 @@ static void msm_chg_enable_dcd(struct msm_otg *motg)
		 * may be incorrectly interpreted. Also
		 * BC1.2 compliance testers expect Rdm_down
		 * to enabled during DCD. Enable Rdm_down
		 * explicitly after enabling the DCD.
		 * explicitly before enabling the DCD.
		 */
		ulpi_write(phy, 0x10, 0x85);
		ulpi_write(phy, 0x04, 0x0B);
		ulpi_write(phy, 0x10, 0x85);
		break;
	default:
		break;