From dd7e7d97e8ab0a767c55e1d3893f189310a53080 Mon Sep 17 00:00:00 2001 From: Mika Westerberg Date: Mon, 6 Aug 2018 13:37:56 +0300 Subject: [PATCH] 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 --- plugins/thunderbolt/fu-plugin-thunderbolt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/thunderbolt/fu-plugin-thunderbolt.c b/plugins/thunderbolt/fu-plugin-thunderbolt.c index 8a5f4b853..45118625c 100644 --- a/plugins/thunderbolt/fu-plugin-thunderbolt.c +++ b/plugins/thunderbolt/fu-plugin-thunderbolt.c @@ -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,