diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2023-05-24 12:33:57 +0200 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2023-06-09 11:07:24 +0200 |
commit | 768e6fe69fde546beb942344c4c4932f3b3bb55b (patch) | |
tree | d747dd9d626439ffddf629f03622e7418a85071d /drivers/thunderbolt/switch.c | |
parent | thunderbolt: Prefix CL state related log messages with "CLx: " (diff) | |
download | linux-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.c | 4 |
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; |