thunderbolt: Check Intel vendor ID in tb_switch_get_generation()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 28 Dec 2022 07:45:35 +0000 (09:45 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 8 Aug 2023 05:13:17 +0000 (08:13 +0300)
commitd589fd42cf3179ca40d87a54f3850b165cf12691
tree9f0263432bd32a34fbde316ad86aaf339ac15aa8
parent408e1d965a1d5ff37d08cf7c1017516418912931
thunderbolt: Check Intel vendor ID in tb_switch_get_generation()

Only Intel made Thunderbolt 1-3 devices so to avoid possible confusion
check for the Intel vendor ID before deciding the device generation.
While there move the USB4 check to happen first.

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