diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2022-10-10 17:04:16 +0200 |
---|---|---|
committer | Mika Westerberg <mika.westerberg@linux.intel.com> | 2023-06-09 11:07:23 +0200 |
commit | ef34add89ee4d1473bd0e78f551efa6fc1feb0cd (patch) | |
tree | acf57061d08804de6c8f901e78ee94cdde70ede9 /drivers/thunderbolt/tb.h | |
parent | thunderbolt: Move tb_enable_tmu() close to other TMU functions (diff) | |
download | linux-ef34add89ee4d1473bd0e78f551efa6fc1feb0cd.tar.xz linux-ef34add89ee4d1473bd0e78f551efa6fc1feb0cd.zip |
thunderbolt: Check valid TMU configuration in tb_switch_tmu_configure()
Instead of at enable time we can do this already in
tb_switch_tmu_configure().
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to 'drivers/thunderbolt/tb.h')
-rw-r--r-- | drivers/thunderbolt/tb.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/thunderbolt/tb.h b/drivers/thunderbolt/tb.h index 5c4b671092bf..2ecad0a6c6a4 100644 --- a/drivers/thunderbolt/tb.h +++ b/drivers/thunderbolt/tb.h @@ -987,9 +987,8 @@ int tb_switch_tmu_init(struct tb_switch *sw); int tb_switch_tmu_post_time(struct tb_switch *sw); int tb_switch_tmu_disable(struct tb_switch *sw); int tb_switch_tmu_enable(struct tb_switch *sw); -void tb_switch_tmu_configure(struct tb_switch *sw, - enum tb_switch_tmu_rate rate, - bool unidirectional); +int tb_switch_tmu_configure(struct tb_switch *sw, enum tb_switch_tmu_rate rate, + bool unidirectional); /** * tb_switch_tmu_is_enabled() - Checks if the specified TMU mode is enabled * @sw: Router whose TMU mode to check |