]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
thunderbolt: Retry DROM reads for more failure scenarios
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 7 Apr 2022 17:17:35 +0000 (01:17 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 10:00:22 +0000 (12:00 +0200)
commit247193fcc63cff155d9a329f780a1479f7001e74
tree6496c4e0f5332381b8b3a58ba5e31691e955a75d
parent88a4f9f46d637c4151b42f9cea718be7a7c7b899
thunderbolt: Retry DROM reads for more failure scenarios

BugLink: https://bugs.launchpad.net/bugs/1962349
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>
(cherry picked from commit e87491a9fd4e33eaf18ef69d8295bb07b31452b2 linux-next)
Signed-off-by: You-Sheng Yang <vicamo.yang@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Acked-by: Paolo Pisati <paolo.pisati@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/thunderbolt/eeprom.c