summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/switch.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2023-05-24 13:33:57 +0300
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-06-09 12:07:24 +0300
commit768e6fe69fde546beb942344c4c4932f3b3bb55b (patch)
treed747dd9d626439ffddf629f03622e7418a85071d /drivers/thunderbolt/switch.c
parentb5d15961d95565934109b4cc53f50c3f5caf0d80 (diff)
downloadlinux-stable-768e6fe69fde546beb942344c4c4932f3b3bb55b.tar.gz
linux-stable-768e6fe69fde546beb942344c4c4932f3b3bb55b.tar.bz2
linux-stable-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;