]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 9 Sep 2020 11:00:56 +0000 (14:00 +0300)
commite8ea34909a53077647e56e7784de014865db9044
tree27457062ea9819cfda2933c8b05159486ae189aa
parent3a95453092733936999f79106dea6741baed60cd
thunderbolt: Retry DROM read once if parsing fails

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>
drivers/thunderbolt/eeprom.c