mirror of
https://github.com/torvalds/linux.git
synced 2026-06-09 07:03:37 +02:00
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:
parent
bb6f011afc
commit
d98a1df787
|
|
@ -4209,7 +4209,7 @@ static void run_state_machine(struct tcpm_port *port)
|
||||||
timer_val_msecs = 0;
|
timer_val_msecs = 0;
|
||||||
trace_android_vh_typec_tcpm_get_timer(tcpm_states[SNK_STARTUP],
|
trace_android_vh_typec_tcpm_get_timer(tcpm_states[SNK_STARTUP],
|
||||||
SINK_DISCOVERY_BC12, &timer_val_msecs);
|
SINK_DISCOVERY_BC12, &timer_val_msecs);
|
||||||
tcpm_set_state(port, SNK_DISCOVERY, 500);
|
tcpm_set_state(port, SNK_DISCOVERY, timer_val_msecs);
|
||||||
break;
|
break;
|
||||||
case SNK_DISCOVERY:
|
case SNK_DISCOVERY:
|
||||||
if (port->vbus_present) {
|
if (port->vbus_present) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user