thunderbolt: Fix DROM handling for USB4 DROM
authorGil Fine <gil.fine@intel.com>
Mon, 14 Jun 2021 13:52:10 +0000 (16:52 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 15 Jun 2021 10:51:07 +0000 (13:51 +0300)
commitb18f901382fdb74a138a0bf30458c54a023a1d86
treed9d941130301feb35f60ed9a093974d20bb526d0
parent135794868ad83d0327cdd78df469e118f1fe7cc4
thunderbolt: Fix DROM handling for USB4 DROM

DROM for USB4 host/device has a shorter header than Thunderbolt DROM
header. This patch addresses host/device with USB4 DROM (According to spec:
Universal Serial Bus 4 (USB4) Device ROM Specification, Rev 1.0, Feb-2021).

While there correct the data_len field to be 12 bits and rename
__unknown1 to reserved following the spec.

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