thunderbolt: Increase retry timeout from 20 to 200 ms

At least with Titan Ridge devices 50 * 20 ms is way too short time
reading nvm_version so most of the time the daemon fails to figure out
the version of the just connected device. To make it work better with
Titan Ridge devices increase the timeout to 50 * 200 ms.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
Mika Westerberg 2018-08-06 13:37:56 +03:00 committed by Richard Hughes
parent b9ac0aa179
commit dd7e7d97e8

View File

@ -31,7 +31,7 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GUdevDevice, g_object_unref)
#pragma clang diagnostic pop
#endif
#define TBT_NVM_RETRY_TIMEOUT 20 /* ms */
#define TBT_NVM_RETRY_TIMEOUT 200 /* ms */
typedef void (*UEventNotify) (FuPlugin *plugin,
GUdevDevice *udevice,