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 <richard@hughsie.com>
This commit is contained in:
Aleksander Morgado 2019-02-01 00:12:55 +01:00 committed by Richard Hughes
parent 0de532b0b0
commit 0f0da353c2

View File

@ -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