mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 16:11:22 +00:00
dfu: Fix up some overzealous replacement when renaming the DFU files
This commit is contained in:
parent
88eef48f36
commit
4fe318bd54
@ -20,7 +20,7 @@ Flags = detach-for-attach
|
||||
# Openmoko Freerunner / GTA02
|
||||
[USB\VID_1D50&PID_5119]
|
||||
Plugin = dfu
|
||||
Flags = ignore-polltimeout,no-pid-change,no-fu-dfu-runtime,needs-bootloader,no-get-status-upload
|
||||
Flags = ignore-polltimeout,no-pid-change,no-dfu-runtime,needs-bootloader,no-get-status-upload
|
||||
|
||||
# OpenPCD Reader
|
||||
[USB\VID_16C0&PID_076B]
|
||||
@ -68,7 +68,7 @@ Flags = attach-upload-download
|
||||
# HydraBus
|
||||
[USB\VID_1D50&PID_60A7]
|
||||
Plugin = dfu
|
||||
Flags = no-fu-dfu-runtime,needs-bootloader
|
||||
Flags = no-dfu-runtime,needs-bootloader
|
||||
|
||||
# Jabra 410 [appIDLE & dfuIDLE]
|
||||
[USB\VID_0B0E&PID_0411]
|
||||
|
@ -35,7 +35,7 @@
|
||||
* * `ignore-polltimeout`: Ignore the device download timeout
|
||||
* * `ignore-runtime`: Device has broken DFU runtime support
|
||||
* * `ignore-upload`: Uploading from the device is broken
|
||||
* * `no-fu-dfu-runtime`: No DFU runtime interface is provided
|
||||
* * `no-dfu-runtime`: No DFU runtime interface is provided
|
||||
* * `no-get-status-upload`: Do not do GetStatus when uploading
|
||||
* * `no-pid-change`: Accept the same VID:PID when changing modes
|
||||
* * `use-any-interface`: Use any interface for DFU
|
||||
@ -402,7 +402,7 @@ fu_dfu_device_add_targets (FuDfuDevice *self, GError **error)
|
||||
|
||||
/* the device has no DFU runtime, so cheat */
|
||||
if (priv->targets->len == 0 &&
|
||||
fu_device_has_custom_flag (FU_DEVICE (self), "no-fu-dfu-runtime")) {
|
||||
fu_device_has_custom_flag (FU_DEVICE (self), "no-dfu-runtime")) {
|
||||
g_debug ("no DFU runtime, so faking device");
|
||||
fu_dfu_device_set_state (self, FU_DFU_STATE_APP_IDLE);
|
||||
priv->iface_number = 0xff;
|
||||
@ -871,7 +871,7 @@ fu_dfu_device_refresh (FuDfuDevice *self, GError **error)
|
||||
|
||||
/* the device has no DFU runtime, so cheat */
|
||||
if (priv->state == FU_DFU_STATE_APP_IDLE &&
|
||||
fu_device_has_custom_flag (FU_DEVICE (self), "no-fu-dfu-runtime"))
|
||||
fu_device_has_custom_flag (FU_DEVICE (self), "no-dfu-runtime"))
|
||||
return TRUE;
|
||||
|
||||
/* ensure interface is claimed */
|
||||
@ -1019,7 +1019,7 @@ fu_dfu_device_detach (FuDevice *device, GError **error)
|
||||
|
||||
/* the device has no DFU runtime, so cheat */
|
||||
if (priv->state == FU_DFU_STATE_APP_IDLE &&
|
||||
fu_device_has_custom_flag (FU_DEVICE (self), "no-fu-dfu-runtime"))
|
||||
fu_device_has_custom_flag (FU_DEVICE (self), "no-dfu-runtime"))
|
||||
return TRUE;
|
||||
|
||||
/* ensure interface is claimed */
|
||||
@ -1076,7 +1076,7 @@ fu_dfu_device_abort (FuDfuDevice *self, GError **error)
|
||||
|
||||
/* the device has no DFU runtime, so cheat */
|
||||
if (priv->state == FU_DFU_STATE_APP_IDLE &&
|
||||
fu_device_has_custom_flag (FU_DEVICE (self), "no-fu-dfu-runtime")) {
|
||||
fu_device_has_custom_flag (FU_DEVICE (self), "no-dfu-runtime")) {
|
||||
g_set_error_literal (error,
|
||||
FWUPD_ERROR,
|
||||
FWUPD_ERROR_NOT_SUPPORTED,
|
||||
@ -1143,7 +1143,7 @@ fu_dfu_device_clear_status (FuDfuDevice *self, GError **error)
|
||||
|
||||
/* the device has no DFU runtime, so cheat */
|
||||
if (priv->state == FU_DFU_STATE_APP_IDLE &&
|
||||
fu_device_has_custom_flag (FU_DEVICE (self), "no-fu-dfu-runtime")) {
|
||||
fu_device_has_custom_flag (FU_DEVICE (self), "no-dfu-runtime")) {
|
||||
g_set_error_literal (error,
|
||||
FWUPD_ERROR,
|
||||
FWUPD_ERROR_NOT_SUPPORTED,
|
||||
@ -1217,7 +1217,7 @@ fu_dfu_device_open (FuDevice *device, GError **error)
|
||||
|
||||
/* the device has no DFU runtime, so cheat */
|
||||
if (priv->state == FU_DFU_STATE_APP_IDLE &&
|
||||
fu_device_has_custom_flag (device, "no-fu-dfu-runtime")) {
|
||||
fu_device_has_custom_flag (device, "no-dfu-runtime")) {
|
||||
fu_dfu_device_set_state (self, FU_DFU_STATE_APP_IDLE);
|
||||
priv->status = FU_DFU_STATUS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user