Skip to content

Commit b62b172

Browse files
Jos Wanggregkh
authored andcommitted
usb: typec: tcpm: set SRC_SEND_CAPABILITIES timeout to PD_T_SENDER_RESPONSE
commit 2eb3da0 upstream. As PD2.0 spec ("8.3.3.2.3 PE_SRC_Send_Capabilities state"), after the Source receives the GoodCRC Message from the Sink in response to the Source_Capabilities message, it should start the SenderResponseTimer, after the timer times out, the state machine transitions to the HARD_RESET state. Fixes: f0690a2 ("staging: typec: USB Type-C Port Manager (tcpm)") Cc: stable@vger.kernel.org Signed-off-by: Jos Wang <joswang@lenovo.com> Reviewed-by: Badhri Jagan Sridharan <badhri@google.com> Link: https://lore.kernel.org/r/20250105135245.7493-1-joswang1221@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 365aedc commit b62b172

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/typec/tcpm/tcpm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4772,7 +4772,7 @@ static void run_state_machine(struct tcpm_port *port)
47724772
port->caps_count = 0;
47734773
port->pd_capable = true;
47744774
tcpm_set_state_cond(port, SRC_SEND_CAPABILITIES_TIMEOUT,
4775-
PD_T_SEND_SOURCE_CAP);
4775+
PD_T_SENDER_RESPONSE);
47764776
}
47774777
break;
47784778
case SRC_SEND_CAPABILITIES_TIMEOUT:

0 commit comments

Comments
 (0)