Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: typec: tcpm: set SRC_SEND_CAPABILITIES timeout to PD_T_SENDER_RESPONSE

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: f0690a25a140 ("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>

authored by

Jos Wang and committed by
Greg Kroah-Hartman
2eb3da03 2919c4a3

+1 -1
+1 -1
drivers/usb/typec/tcpm/tcpm.c
··· 4821 4821 port->caps_count = 0; 4822 4822 port->pd_capable = true; 4823 4823 tcpm_set_state_cond(port, SRC_SEND_CAPABILITIES_TIMEOUT, 4824 - PD_T_SEND_SOURCE_CAP); 4824 + PD_T_SENDER_RESPONSE); 4825 4825 } 4826 4826 break; 4827 4827 case SRC_SEND_CAPABILITIES_TIMEOUT: