summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/switch.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2023-05-24 12:33:57 +0200
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-06-09 11:07:24 +0200
commit768e6fe69fde546beb942344c4c4932f3b3bb55b (patch)
treed747dd9d626439ffddf629f03622e7418a85071d /drivers/thunderbolt/switch.c
parentthunderbolt: Prefix CL state related log messages with "CLx: " (diff)
downloadlinux-768e6fe69fde546beb942344c4c4932f3b3bb55b.tar.xz
linux-768e6fe69fde546beb942344c4c4932f3b3bb55b.zip
thunderbolt: Initialize CL states from the hardware
In case the boot firmware enabled any of them, read the currently configured CL states and update the router structure accordingly. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/switch.c')
-rw-r--r--drivers/thunderbolt/switch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c
index f33a09d92c9b..0c11caec7e8e 100644
--- a/drivers/thunderbolt/switch.c
+++ b/drivers/thunderbolt/switch.c
@@ -2859,6 +2859,10 @@ int tb_switch_add(struct tb_switch *sw)
if (ret)
return ret;
+ ret = tb_switch_clx_init(sw);
+ if (ret)
+ return ret;
+
ret = tb_switch_tmu_init(sw);
if (ret)
return ret;