thunderbolt: Enable/disable sideband depending on USB4 port offline mode
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 26 May 2023 11:55:20 +0000 (14:55 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 12 Jun 2023 05:38:01 +0000 (08:38 +0300)
commit87200371817ec6e48e42ef2f03756268661a8815
tree23d64c1a7e8bf47f789e958536587331e75517af
parentb7b83911f7906a72f50806279ef22c86be728b69
thunderbolt: Enable/disable sideband depending on USB4 port offline mode

When USB4 port is in offline mode (this mean there is no device
attached) we want to keep the sideband up to make it possible to
communicate with the retimers. In the same way there is no need to
enable sideband transactions when the USB4 port is not offline as they
are already up.

For this reason make the enabling/disabling depend on the USB4 port
offline status.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/retimer.c
drivers/thunderbolt/tb.h