thunderbolt: Retry DROM read once if parsing fails
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 7 Sep 2020 09:20:36 +0000 (12:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 11:00:01 +0000 (13:00 +0200)
commitca5a4fe0fa71769c23f8e23ce35a777892ed8e4a
treec5dd2e01ae0d6087cc0971b4b103bba528c84aa9
parent0545c936808dda3e6d791a908dd63b4ccf81038c
thunderbolt: Retry DROM read once if parsing fails

commit f022ff7bf377ca94367be05de61277934d42ea74 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/eeprom.c