thunderbolt: Identify USB4 v2 routers
authorGil Fine <gil.fine@intel.com>
Thu, 22 Sep 2022 22:30:43 +0000 (01:30 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 16 Jun 2023 06:53:27 +0000 (09:53 +0300)
commit6e21007d0f7e6723bb67e79aa3d0081419c403e8
tree7e04b5cacc8c13815a91cc1e38b7bac09c838469
parent2ad3e1314cafad9a8edbefed2b19d2a101cdb4fc
thunderbolt: Identify USB4 v2 routers

Add a new function usb4_switch_version() that can be used to figure out
the spec version of the router and make tb_switch_is_usb4() to use it as
well. Update the uevent accordingly.

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