thunderbolt: Add support for USB4 DROM
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 28 Dec 2020 11:01:39 +0000 (13:01 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Mar 2021 15:25:32 +0000 (18:25 +0300)
commit3231307e399a411db07d7d7927df38c4a4b88353
tree30ae8b55f276c1d9938feb98724d0aa0363250ac
parente23a5afd013c15909169c56751f8d7dac67a68eb
thunderbolt: Add support for USB4 DROM

USB4 router DROM differs sligthly from Thunderbolt 1-3 DROM. For
instance it does not include UID and CRC8 in the header section, and it
has product descriptor genereric entry to describe the product IDs and
related information. If the "Version" field in the DROM header section
reads 3 it means the router only has USB4 DROM and if it reads 1 it
means the router supports TBT3 compatible DROM.

For this reason, update the DROM parsing code to support "pure" USB4
DROMs too.

While there drop the extra empty line at the end of tb_drom_read().

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