]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: altmodes/displayport: do not enter mode if port is the UFP
authorRD Babiera <rdbabiera@google.com>
Tue, 23 Sep 2025 18:16:08 +0000 (18:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Oct 2025 07:11:50 +0000 (09:11 +0200)
commit41294342fad7d7fe907d8707a4efcafdb66b7940
tree42cdf7ad0a9f09b4c935370be6093d4a4e938feb
parented4a5c5de56ad4e23c9e5da8981639352b63b8ac
usb: typec: altmodes/displayport: do not enter mode if port is the UFP

Nothing currently stops the DisplayPort Alt Mode driver from sending
Enter Mode if the port is the Data Device. Utilize
typec_altmode_get_data_role to prevent mode entry.

Signed-off-by: RD Babiera <rdbabiera@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250923181606.1583584-6-rdbabiera@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/altmodes/displayport.c