thunderbolt: Retry DROM reads for more failure scenarios
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 3 Mar 2022 13:13:24 +0000 (07:13 -0600)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 4 Mar 2022 14:10:36 +0000 (17:10 +0300)
commite87491a9fd4e33eaf18ef69d8295bb07b31452b2
treef5778da0e5f50d77ab69ff967995ae59c5e0f0a5
parent7f7b571becf3731dfa9aa50bed420e0c988e511d
thunderbolt: Retry DROM reads for more failure scenarios

Currently DROM reads are only retried in the case that parsing failed.
However if the size or CRC fails, then there should also be a retry.

This helps with reading the DROM on TBT3 devices connected to AMD
Yellow Carp which will sometimes fail on the first attempt.

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