]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
thunderbolt: Retry DROM read once if parsing fails
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 18 Sep 2020 05:56:21 +0000 (13:56 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:47:02 +0000 (14:47 +0100)
commitf644524a0266630af3c8ee5e50e5a41b8843ccd6
treea66f34d48fb2c128d765f422335849d657250f77
parent4e40534f7e2c40dc3e4423affd8b988d2b662a53
thunderbolt: Retry DROM read once if parsing fails

BugLink: https://bugs.launchpad.net/bugs/1895606
Kai-Heng reported that sometimes DROM parsing of ASUS PA27AC Thunderbolt 3
monitor fails. This makes the driver to fail to add the device so only
DisplayPort tunneling is functional.

It is not clear what exactly happens but waiting for 100 ms and retrying
the read seems to work this around so we do that here.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=206493
Reported-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Tested-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
(bacported from commit f022ff7bf377ca94367be05de61277934d42ea74
linux-next)
Signed-off-by: AceLan Kao <acelan.kao@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/thunderbolt/eeprom.c