Skip to content

Commit 893cd94

Browse files
kyletsoadlgregkh
authored andcommitted
usb: typec: tcpm: Correct port source pdo array in pd_set callback
In tcpm_pd_set, the array of port source capabilities is port->src_pdo, not port->snk_pdo. Fixes: cd099cd ("usb: typec: tcpm: Support multiple capabilities") Cc: stable@vger.kernel.org Signed-off-by: Kyle Tso <kyletso@google.com> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Link: https://lore.kernel.org/r/20240311144500.3694849-1-kyletso@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent cd5432c commit 893cd94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/typec/tcpm/tcpm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6861,7 +6861,7 @@ static int tcpm_pd_set(struct typec_port *p, struct usb_power_delivery *pd)
68616861

68626862
if (data->source_desc.pdo[0]) {
68636863
for (i = 0; i < PDO_MAX_OBJECTS && data->source_desc.pdo[i]; i++)
6864-
port->snk_pdo[i] = data->source_desc.pdo[i];
6864+
port->src_pdo[i] = data->source_desc.pdo[i];
68656865
port->nr_src_pdo = i + 1;
68666866
}
68676867

0 commit comments

Comments
 (0)