summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/domain.c
diff options
context:
space:
mode:
authorGil Fine <gil.fine@linux.intel.com>2023-02-12 23:45:21 +0100
committerMika Westerberg <mika.westerberg@linux.intel.com>2024-02-26 08:12:24 +0100
commita0c45b0b6ce23bc1cd6737ecd34df6c4a422a3ae (patch)
tree87768687e53ca396c83b9c2c136ec393802a0332 /drivers/thunderbolt/domain.c
parentthunderbolt: Keep the domain powered when USB4 port is in redrive mode (diff)
downloadlinux-a0c45b0b6ce23bc1cd6737ecd34df6c4a422a3ae.tar.xz
linux-a0c45b0b6ce23bc1cd6737ecd34df6c4a422a3ae.zip
thunderbolt: Add trace events support for the control channel
Sometimes it is useful to see the traffic happening inside the control channel, especially when debugging a possible problem. This adds tracepoints close to the hardware which can be enabled dynamically as needed using the standard Linux trace events facility. Signed-off-by: Gil Fine <gil.fine@linux.intel.com> Co-developed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/domain.c')
-rw-r--r--drivers/thunderbolt/domain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thunderbolt/domain.c b/drivers/thunderbolt/domain.c
index d7abb8c445aa..1d915a6c61a4 100644
--- a/drivers/thunderbolt/domain.c
+++ b/drivers/thunderbolt/domain.c
@@ -397,7 +397,7 @@ struct tb *tb_domain_alloc(struct tb_nhi *nhi, int timeout_msec, size_t privsize
if (!tb->wq)
goto err_remove_ida;
- tb->ctl = tb_ctl_alloc(nhi, timeout_msec, tb_domain_event_cb, tb);
+ tb->ctl = tb_ctl_alloc(nhi, tb->index, timeout_msec, tb_domain_event_cb, tb);
if (!tb->ctl)
goto err_destroy_wq;