From 0f0da353c2d3da46fe929c655ffdc1b5844b5ea1 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 1 Feb 2019 00:12:55 +0100 Subject: [PATCH] fastboot: Use a much longer timeout as the removal delay A device that has gone through a fastboot update may need more than the previous default of 10s to come back up. Just use a much longer value to make sure it's detected properly. Signed-off-by: Richard Hughes --- plugins/fastboot/fu-fastboot-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/fastboot/fu-fastboot-device.c b/plugins/fastboot/fu-fastboot-device.c index cd26d59bd..5cd541e08 100644 --- a/plugins/fastboot/fu-fastboot-device.c +++ b/plugins/fastboot/fu-fastboot-device.c @@ -13,6 +13,7 @@ #include "fu-chunk.h" #include "fu-fastboot-device.h" +#define FASTBOOT_REMOVE_DELAY_RE_ENUMERATE 60000 /* ms */ #define FASTBOOT_TRANSACTION_TIMEOUT 1000 /* ms */ #define FASTBOOT_TRANSACTION_RETRY_MAX 600 #define FASTBOOT_EP_IN 0x81 @@ -683,8 +684,7 @@ fu_fastboot_device_init (FuFastbootDevice *self) /* this is a safe default, even using USBv1 */ self->blocksz = 512; fu_device_add_flag (FU_DEVICE (self), FWUPD_DEVICE_FLAG_UPDATABLE); - fu_device_set_remove_delay (FU_DEVICE (self), - FU_DEVICE_REMOVE_DELAY_RE_ENUMERATE); + fu_device_set_remove_delay (FU_DEVICE (self), FASTBOOT_REMOVE_DELAY_RE_ENUMERATE); } static void