]> www.infradead.org Git - users/dwmw2/linux.git/commit
thunderbolt: Reset USB4 v2 host router
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 23 Dec 2022 14:59:00 +0000 (16:59 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 16 Jun 2023 06:53:28 +0000 (09:53 +0300)
commit0fc70886569c8459c4494ba9ef8c4ef34b81e781
tree2b8edf84560af532b539af34a37f2b8fe3de3cfe
parent235d019481bcaa38a1d407f8513c54209aa387b8
thunderbolt: Reset USB4 v2 host router

USB4 v2 added a bit that can be used to reset the host router so we use
this to trigger reset when the driver probes. This will reset the
already connected topology as well but doing this simplifies things a
lot if for instance the link is already set to asymmetric. We also add
a module parameter to prevent this in case of problems.

While there rename the REG_HOP_COUNT to REG_CAPS to match the USB4 spec
naming better.

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