diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2023-05-24 13:33:57 +0300 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2023-06-09 12:07:24 +0300 |
commit | 768e6fe69fde546beb942344c4c4932f3b3bb55b (patch) | |
tree | d747dd9d626439ffddf629f03622e7418a85071d /drivers/thunderbolt/switch.c | |
parent | b5d15961d95565934109b4cc53f50c3f5caf0d80 (diff) | |
download | lwn-768e6fe69fde546beb942344c4c4932f3b3bb55b.tar.gz lwn-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; |