From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 51FFE1A314B; Wed, 19 Feb 2025 09:17:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739956664; cv=none; b=KCwxeKILlhMn4Y+2a5Uv1+9F/weWVGnMAZwKgKgj82ZxYSYBPONhD4/Z4BcGlTfVYxgxSLDK8bifDX10EJozLjXDgrxcPuO/R2O8uzeuCrCi7kjb5ga6bp4pdQzsCb867J1YY1SqstHalK+lsxGx44u2KXEKa7rqle6uWNPHH0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739956664; c=relaxed/simple; bh=cQPLe5ZocGv4qAXNMDvwpWa3OIM2CHUM3k9RGjujw1Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UHCbyyTSXoHRTfwh8xTS99buAYaHZJ0P3gbDmM/oWhagChR+Z6bGLS4TjgSHR5eKJ/Su3nkkfHIkjw9SQv64e/n6l1bqLbdJH+Rl2hgzqqcph781PzN9TZ/jGUaCtqOCixmTjF1QN3SSKCaAltt1/VgqUbvOK8VzSbuMcXOCBYU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZSU3Y/qQ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZSU3Y/qQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74E1AC4CED1; Wed, 19 Feb 2025 09:17:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739956662; bh=cQPLe5ZocGv4qAXNMDvwpWa3OIM2CHUM3k9RGjujw1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZSU3Y/qQw8nQ56Zf81wVAWtuo3I+zsIX8PPLkDjiMvfpoTye03ryYfgIs3al+hrY6 m4Zwbd56Bo6oOUzYQgtb/F5tzfhT7XXiSSSb7n6X7vmZuc9qUzXwlTK/q3rz72W1Le zQohzig2Cb5ybpyB3HKdQN6E2OmmJVelYe9x89NY= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jos Wang , Badhri Jagan Sridharan Subject: [PATCH 6.1 257/578] usb: typec: tcpm: set SRC_SEND_CAPABILITIES timeout to PD_T_SENDER_RESPONSE Date: Wed, 19 Feb 2025 09:24:21 +0100 Message-ID: <20250219082703.135968835@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250219082652.891560343@linuxfoundation.org> References: <20250219082652.891560343@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jos Wang commit 2eb3da037c2c20fa30bc502bc092479b2a1aaae2 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: f0690a25a140 ("staging: typec: USB Type-C Port Manager (tcpm)") Cc: stable@vger.kernel.org Signed-off-by: Jos Wang Reviewed-by: Badhri Jagan Sridharan Link: https://lore.kernel.org/r/20250105135245.7493-1-joswang1221@gmail.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/typec/tcpm/tcpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/usb/typec/tcpm/tcpm.c +++ b/drivers/usb/typec/tcpm/tcpm.c @@ -4114,7 +4114,7 @@ static void run_state_machine(struct tcp port->caps_count = 0; port->pd_capable = true; tcpm_set_state_cond(port, SRC_SEND_CAPABILITIES_TIMEOUT, - PD_T_SEND_SOURCE_CAP); + PD_T_SENDER_RESPONSE); } break; case SRC_SEND_CAPABILITIES_TIMEOUT: