ANDROID: usb: typec: tcpm: Fixup the wait time for SNK_DISCOVERY

f694171a83 ("ANDROID: usb: typec: tcpm: vendor hook for timer
adjustments") incorrectly passes the hard coded value of 500ms
instead of passing the value of the timer obtained from vendor
hook. This change fixes that.

Bug: 184308605
Bug: 185515554
Bug: 190442133
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I678110146f460875978baa0a63010392ce9d939a
This commit is contained in:
Badhri Jagan Sridharan 2021-06-07 17:58:01 -07:00 committed by Greg Kroah-Hartman
commit d98a1df787

View file

@ -4209,7 +4209,7 @@ static void run_state_machine(struct tcpm_port *port)
timer_val_msecs = 0;
trace_android_vh_typec_tcpm_get_timer(tcpm_states[SNK_STARTUP],
SINK_DISCOVERY_BC12, &timer_val_msecs);
tcpm_set_state(port, SNK_DISCOVERY, 500);
tcpm_set_state(port, SNK_DISCOVERY, timer_val_msecs);
break;
case SNK_DISCOVERY:
if (port->vbus_present) {