thunderbolt: Change downstream router's TMU rate in both TMU uni/bidir mode
authorGil Fine <gil.fine@intel.com>
Thu, 26 May 2022 10:59:19 +0000 (13:59 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 6 Jun 2022 09:19:23 +0000 (12:19 +0300)
commit5fd6b9a5cbe63fea4c490fee8af34144a139a266
tree8ca79d9e0a0cc896001ef423925d7e6e5789d6b9
parentb4e08d5d08192699e68ffa796bd2c3ab58af5730
thunderbolt: Change downstream router's TMU rate in both TMU uni/bidir mode

In case of uni-directional time sync, TMU handshake is
initiated by upstream router. In case of bi-directional
time sync, TMU handshake is initiated by downstream router.
In order to handle correctly the case of uni-directional mode,
we avoid changing the upstream router's rate to off,
because it might have another downstream router plugged that is set to
uni-directional mode (and we don't want to change its mode).
Instead, we always change downstream router's rate.

Signed-off-by: Gil Fine <gil.fine@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tmu.c