mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 21:30:48 +00:00
dfu: Do not wait for a USB runtime if will-disappear is set
Fixes https://github.com/fwupd/fwupd/issues/4000
This commit is contained in:
parent
d62d281871
commit
e121332c97
@ -4,7 +4,8 @@ Plugin = dfu
|
||||
|
||||
# GD32VF103 Rev1
|
||||
[USB\VID_28E9&PID_0189]
|
||||
Flags = gd32,force-dfu-mode
|
||||
Flags = gd32,force-dfu-mode,will-disappear
|
||||
Name = GD32VF103
|
||||
Vendor = GDMicroelectronics
|
||||
|
||||
# Realtek USB camera
|
||||
@ -330,7 +331,7 @@ DfuAltName = @Flash/0x0/1*32Kg
|
||||
|
||||
# STM32F745 dfuse bootloader
|
||||
[USB\VID_0483&PID_DF11]
|
||||
Flags = absent-sector-size
|
||||
Flags = absent-sector-size,will-disappear
|
||||
Plugin = dfu
|
||||
DfuForceVersion = 011a
|
||||
DfuForceTimeout = 5000
|
||||
|
@ -1400,6 +1400,10 @@ fu_dfu_device_attach(FuDevice *device, FuProgress *progress, GError **error)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* there is no USB runtime whatsoever */
|
||||
if (fu_device_has_flag(device, FWUPD_DEVICE_FLAG_WILL_DISAPPEAR))
|
||||
return TRUE;
|
||||
|
||||
/* success */
|
||||
priv->force_version = 0x0;
|
||||
fu_device_add_flag(device, FWUPD_DEVICE_FLAG_WAIT_FOR_REPLUG);
|
||||
|
Loading…
Reference in New Issue
Block a user