]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: Introduce mode_selection bit
authorAndrei Kuchynski <akuchynski@chromium.org>
Mon, 19 Jan 2026 13:18:22 +0000 (13:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Jan 2026 16:18:01 +0000 (17:18 +0100)
commitbe727d4000669a64a3ce6697669150d78bb2d492
treea576df8817aec4a1744507c486c42e9a7a859ac6
parentfb2abc754672f769ca0bc36bdeb3c2f81927f446
usb: typec: Introduce mode_selection bit

The port driver sets this bit for an alternate mode description to indicate
support for the mode selection feature. Once set, individual Alt Mode
drivers will no longer attempt to activate their respective modes within
their probe functions. This prevents race conditions and non-prioritized
activation.
The bit is not set by default. If left unset, the system retains the
current behavior where Alt Mode drivers manage their own activation logic.

Signed-off-by: Andrei Kuchynski <akuchynski@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260119131824.2529334-6-akuchynski@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/altmodes/displayport.c
drivers/usb/typec/altmodes/thunderbolt.c
drivers/usb/typec/class.c
include/linux/usb/typec.h
include/linux/usb/typec_altmode.h