summaryrefslogtreecommitdiff
path: root/drivers/thunderbolt/xdomain.c
diff options
context:
space:
mode:
authorGil Fine <gil.fine@linux.intel.com>2023-11-07 14:00:53 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-12-14 09:07:44 +0300
commitea20adddd6c154e9e107c47fbf1b4697e68180df (patch)
treee5604f366d85a632991d8f71cb8699666c8f7fc1 /drivers/thunderbolt/xdomain.c
parent30c6759b232bf42297a9ee6c60debf9082005d41 (diff)
downloadlinux-ea20adddd6c154e9e107c47fbf1b4697e68180df.tar.xz
thunderbolt: Log XDomain link speed and width
In the same way we do for routers. This is useful for debugging purposes. Signed-off-by: Gil Fine <gil.fine@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/xdomain.c')
-rw-r--r--drivers/thunderbolt/xdomain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/thunderbolt/xdomain.c b/drivers/thunderbolt/xdomain.c
index 0a885ee5788d..9495742913d5 100644
--- a/drivers/thunderbolt/xdomain.c
+++ b/drivers/thunderbolt/xdomain.c
@@ -1462,6 +1462,11 @@ static int tb_xdomain_get_properties(struct tb_xdomain *xd)
tb_port_disable(port->dual_link_port);
}
+ dev_dbg(&xd->dev, "current link speed %u.0 Gb/s\n",
+ xd->link_speed);
+ dev_dbg(&xd->dev, "current link width %s\n",
+ tb_width_name(xd->link_width));
+
if (device_add(&xd->dev)) {
dev_err(&xd->dev, "failed to add XDomain device\n");
return -ENODEV;