]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: typec: ucsi: Add Thunderbolt alternate mode support
authorAndrei Kuchynski <akuchynski@chromium.org>
Fri, 6 Feb 2026 11:57:54 +0000 (11:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2026 14:32:13 +0000 (15:32 +0100)
commitda87d45b195148d670ab995367d52aa9e8a9a1fa
tree1cc66180dd2d9362280cd6615148f36b314d4234
parentb3f9d6e491fda73c319547881b78cdd2a222b293
usb: typec: ucsi: Add Thunderbolt alternate mode support

Introduce support for Thunderbolt (TBT) alternate mode to the UCSI driver.
This allows the driver to manage the entry and exit of TBT altmode by
providing the necessary typec_altmode_ops.

ucsi_altmode_update_active() is invoked when the Connector Partner Changed
bit is set in the GET_CONNECTOR_STATUS data. This ensures that the
alternate mode's active state is synchronized with the current mode the
connector is operating in.

Signed-off-by: Andrei Kuchynski <akuchynski@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://patch.msgid.link/20260206115754.828954-1-akuchynski@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/Makefile
drivers/usb/typec/ucsi/thunderbolt.c [new file with mode: 0644]
drivers/usb/typec/ucsi/ucsi.c
drivers/usb/typec/ucsi/ucsi.h