]> 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)
commit636f5d76dcda92b0960ff5340ac629ebc95830db
tree27457062ea9819cfda2933c8b05159486ae189aa
parent828b19ce8171b06be3eea6dae73b06cbdc1c4ef5
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