thunderbolt: Make tb_switch_reset() support Thunderbolt 2, 3 and USB4 routers
authorSanath S <Sanath.S@amd.com>
Sat, 13 Jan 2024 09:47:26 +0000 (11:47 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 22 Jan 2024 11:21:06 +0000 (13:21 +0200)
commitec8162b3f0683ae08a21f20517cf49272b07ee0b
tree5267ca84db50913b54a5dc4cb1638a4925253982
parentb35c1d7b11da8c08b14147bbe87c2c92f7a83f8b
thunderbolt: Make tb_switch_reset() support Thunderbolt 2, 3 and USB4 routers

Currently tb_switch_reset() only did something for Thunderbolt 1
devices. Expand this to support all generations, including USB4, and
both host and device routers.

Signed-off-by: Sanath S <Sanath.S@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb_regs.h