summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/eeprom.c
diff options
context:
space:
mode:
authorMika Westerberg <mika.westerberg@linux.intel.com>2022-12-16 12:41:12 +0100
committerMika Westerberg <mika.westerberg@linux.intel.com>2023-06-16 08:53:27 +0200
commit4796efdd16a8066919a3ff479e0bbc14bac816ff (patch)
tree53d2b4bdf7cf7840b0a8ac6436b90b4bdf52ad77 /drivers/thunderbolt/eeprom.c
parentthunderbolt: Enable/disable sideband depending on USB4 port offline mode (diff)
downloadlinux-4796efdd16a8066919a3ff479e0bbc14bac816ff.tar.xz
linux-4796efdd16a8066919a3ff479e0bbc14bac816ff.zip
thunderbolt: Ignore data CRC mismatch for USB4 routers
This is also something not always updated after the DROM contents itself so issue warning but continue parsing it as we do for pre-USB4 DROMs too. Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Diffstat (limited to '')
-rw-r--r--drivers/thunderbolt/eeprom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/thunderbolt/eeprom.c b/drivers/thunderbolt/eeprom.c
index 0f6099c18a94..eb241b270f79 100644
--- a/drivers/thunderbolt/eeprom.c
+++ b/drivers/thunderbolt/eeprom.c
@@ -605,9 +605,8 @@ static int usb4_drom_parse(struct tb_switch *sw)
crc = tb_crc32(sw->drom + TB_DROM_DATA_START, header->data_len);
if (crc != header->data_crc32) {
tb_sw_warn(sw,
- "DROM data CRC32 mismatch (expected: %#x, got: %#x), aborting\n",
+ "DROM data CRC32 mismatch (expected: %#x, got: %#x), continuing\n",
header->data_crc32, crc);
- return -EINVAL;
}
return tb_drom_parse_entries(sw, USB4_DROM_HEADER_SIZE);