This is a note to let you know that I've just added the patch titled usb: typec: tcpm: Correct port source pdo array in pd_set callback to the 6.8-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: usb-typec-tcpm-correct-port-source-pdo-array-in-pd_set-callback.patch and it can be found in the queue-6.8 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 893cd9469c68a89a34956121685617dbb37497b1 Mon Sep 17 00:00:00 2001 From: Kyle Tso <kyletso@xxxxxxxxxx> Date: Mon, 11 Mar 2024 22:45:00 +0800 Subject: usb: typec: tcpm: Correct port source pdo array in pd_set callback From: Kyle Tso <kyletso@xxxxxxxxxx> commit 893cd9469c68a89a34956121685617dbb37497b1 upstream. In tcpm_pd_set, the array of port source capabilities is port->src_pdo, not port->snk_pdo. Fixes: cd099cde4ed2 ("usb: typec: tcpm: Support multiple capabilities") Cc: stable@xxxxxxxxxxxxxxx Signed-off-by: Kyle Tso <kyletso@xxxxxxxxxx> Acked-by: Heikki Krogerus <heikki.krogerus@xxxxxxxxxxxxxxx> Link: https://lore.kernel.org/r/20240311144500.3694849-1-kyletso@xxxxxxxxxx Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- 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 @@ -6117,7 +6117,7 @@ static int tcpm_pd_set(struct typec_port if (data->source_desc.pdo[0]) { for (i = 0; i < PDO_MAX_OBJECTS && data->source_desc.pdo[i]; i++) - port->snk_pdo[i] = data->source_desc.pdo[i]; + port->src_pdo[i] = data->source_desc.pdo[i]; port->nr_src_pdo = i + 1; } Patches currently in stable-queue which might be from kyletso@xxxxxxxxxx are queue-6.8/usb-typec-tcpm-correct-port-source-pdo-array-in-pd_set-callback.patch queue-6.8/usb-typec-return-size-of-buffer-if-pd_set-operation-succeeds.patch queue-6.8/usb-typec-tcpm-update-pd-of-type-c-port-upon-pd_set.patch