thunderbolt: Add USB4 port devices
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 1 Apr 2021 14:34:20 +0000 (17:34 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 1 Jun 2021 07:53:31 +0000 (10:53 +0300)
commitcae5f5151d76635f6b5c08133184c48048346e63
treebdda8980468d7203038b278503635dbb9e8f198e
parent0f28879cf6836f170773a9456c856e1f08f56764
thunderbolt: Add USB4 port devices

Create devices for each USB4 port. This is needed when we add retimer
access when there is no device connected but may be useful for other
purposes too following what USB subsystem does. This exports a single
attribute "link" that shows the type of the USB4 link (or "none" if
there is no cable connected).

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/sysfs-bus-thunderbolt
drivers/thunderbolt/Makefile
drivers/thunderbolt/retimer.c
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/usb4.c
drivers/thunderbolt/usb4_port.c [new file with mode: 0644]