]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: altmode/displayport: set displayport signaling rate in configure message
authorRD Babiera <rdbabiera@google.com>
Tue, 10 Mar 2026 20:41:05 +0000 (20:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 15:20:57 +0000 (16:20 +0100)
commite8557acfa079a54b59a21f447c82a31aec7717df
tree5d7bfcb88644e0f2f435bd3800189ad7623e4f80
parent17ab4d4078e22be7fd8fd6fc710c15c085a4cb1b
usb: typec: altmode/displayport: set displayport signaling rate in configure message

dp_altmode_configure sets the signaling rate to the current
configuration's rate and then shifts the value to the Select
Configuration bitfield. On the initial configuration, dp->data.conf
is 0 to begin with, so the signaling rate field is never set, which
leads to some DisplayPort Alt Mode partners sending NAK to the
Configure message.

Set the signaling rate to the capabilities supported by both the
port and the port partner. If the cable supports DisplayPort Alt Mode,
then include its capabilities as well.

Fixes: a17fae8fc38e ("usb: typec: Add Displayport Alternate Mode 2.1 Support")
Cc: stable <stable@kernel.org>
Signed-off-by: RD Babiera <rdbabiera@google.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260310204106.3939862-2-rdbabiera@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/altmodes/displayport.c