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

Commit 692cec45 authored by Harry Yang's avatar Harry Yang
Browse files

power: smblib: extend wait time after force sink in try.SNK



In Try.SNK software implementation, after forcing sink, there
is a delay of tDRPTRY + Tccdebounce time, giviing opportunity
to the other side to be a SRC.

The current delay is 100ms < tDRPTRY (90ms) + Tccdebounce (20ms),
too short, which sometimes results in checking Tccdebounce_done
status too early.

Change the delay to 120ms.

Change-Id: If9fe9aa7c405a5ae6416e9373449c4a76295e4d8
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent 8bdaa32f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3827,7 +3827,7 @@ static int typec_try_sink(struct smb_charger *chg)
	 * give opportunity to the other side to be a SRC,
	 * for tDRPTRY + Tccdebounce time
	 */
	msleep(100);
	msleep(120);

	rc = smblib_read(chg, TYPE_C_STATUS_4_REG, &stat);
	if (rc < 0) {