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:
Gaël PORTAY 2022-03-20 18:44:53 +01:00 committed by Richard Hughes
parent be4e3fffdc
commit ac760f7a2d
2 changed files with 3 additions and 4 deletions

View File

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

View File

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