mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-16 10:06:41 +00:00
genesys: usbhub: Set dual-image flat in quirk file
Some Genesys Logic USB Hub does have support for dual-image. This sets the flag dual-image in the quirk file instead of hardcoding it in the plugin.
This commit is contained in:
parent
be4e3fffdc
commit
ac760f7a2d
@ -843,7 +843,6 @@ fu_genesys_usbhub_device_setup(FuDevice *device, GError **error)
|
||||
} else {
|
||||
self->code_size = self->fw_data_total_count;
|
||||
}
|
||||
fu_device_add_flag(device, FWUPD_DEVICE_FLAG_DUAL_IMAGE);
|
||||
fu_device_set_firmware_size_max(device, 0x8000);
|
||||
break;
|
||||
case ISP_MODEL_HUB_GL3590:
|
||||
@ -852,7 +851,6 @@ fu_genesys_usbhub_device_setup(FuDevice *device, GError **error)
|
||||
self->fw_bank_addr[0] = 0x0000;
|
||||
self->fw_bank_addr[1] = 0x10000;
|
||||
self->fw_data_total_count = 0x8000;
|
||||
fu_device_add_flag(device, FWUPD_DEVICE_FLAG_DUAL_IMAGE);
|
||||
fu_device_set_firmware_size_max(device, 0x10000);
|
||||
break;
|
||||
default:
|
||||
|
@ -4,6 +4,7 @@
|
||||
[USB\VID_03F0&PID_0610]
|
||||
Plugin = genesys
|
||||
Name = HP USB-C Controller
|
||||
Flags = dual-image
|
||||
GenesysUsbhubSwitchRequest = 0xA1
|
||||
GenesysUsbhubReadRequest = 0xA2
|
||||
GenesysUsbhubWriteRequest = 0xA3
|
||||
@ -11,7 +12,7 @@ GenesysUsbhubWriteRequest = 0xA3
|
||||
[USB\VID_03F0&PID_0610&PUBKEY_AB859399-95B8-5817-B521-9AD8CC7F5BD6]
|
||||
Plugin = genesys
|
||||
Name = HP M24fd USB-C Controller
|
||||
Flags = has-mstar-scaler
|
||||
Flags = dual-image,has-mstar-scaler
|
||||
GenesysUsbhubSwitchRequest = 0xA1
|
||||
GenesysUsbhubReadRequest = 0xA2
|
||||
GenesysUsbhubWriteRequest = 0xA3
|
||||
@ -19,7 +20,7 @@ GenesysUsbhubWriteRequest = 0xA3
|
||||
[USB\VID_03F0&PID_0610&PUBKEY_6BE97D77-C2BA-5AA2-B7DF-B9B318BEC2B5]
|
||||
Plugin = genesys
|
||||
Name = HP M27fd USB-C Controller
|
||||
Flags = has-mstar-scaler
|
||||
Flags = dual-image,has-mstar-scaler
|
||||
GenesysUsbhubSwitchRequest = 0xA1
|
||||
GenesysUsbhubReadRequest = 0xA2
|
||||
GenesysUsbhubWriteRequest = 0xA3
|
||||
|
Loading…
Reference in New Issue
Block a user