diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2022-08-30 18:32:47 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-08-31 14:05:12 +0100 |
commit | f9cad07b840ec8a8eb54928908d694b6e262631c (patch) | |
tree | 9608a38e64537f49bef288a0878353a2d6ecf22e /drivers/thunderbolt/usb4_port.c | |
parent | ff7cd07f306406493f7b78890475e85b6d0811ed (diff) | |
download | linux-f9cad07b840ec8a8eb54928908d694b6e262631c.tar.gz |
thunderbolt: Show link type for XDomain connections too
Following what we do for routers already, extend this to XDomain
connections as well. This will show in sysfs whether the link is in USB4
or Thunderbolt mode.
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/thunderbolt/usb4_port.c')
-rw-r--r-- | drivers/thunderbolt/usb4_port.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/thunderbolt/usb4_port.c b/drivers/thunderbolt/usb4_port.c index 6b02945624ee..1a30c0a23286 100644 --- a/drivers/thunderbolt/usb4_port.c +++ b/drivers/thunderbolt/usb4_port.c @@ -53,6 +53,8 @@ static ssize_t link_show(struct device *dev, struct device_attribute *attr, link = port->sw->link_usb4 ? "usb4" : "tbt"; else if (tb_port_has_remote(port)) link = port->remote->sw->link_usb4 ? "usb4" : "tbt"; + else if (port->xdomain) + link = port->xdomain->link_usb4 ? "usb4" : "tbt"; else link = "none"; |