mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 04:00:41 +00:00
ccgx: Read the FwAppType from the hardware
This commit is contained in:
parent
2b45362e25
commit
de61d27259
@ -456,6 +456,7 @@ fu_ccgx_hpi_device_setup (FuDevice *device, GError **error)
|
||||
0x0c, &ver_fw1,
|
||||
G_LITTLE_ENDIAN, error))
|
||||
return FALSE;
|
||||
self->fw_app_type = ver_fw1 & 0xffff;
|
||||
if (!fu_common_read_uint32_safe (bufver, sizeof(bufver),
|
||||
0x14, &ver_fw2,
|
||||
G_LITTLE_ENDIAN, error))
|
||||
@ -496,18 +497,6 @@ fu_ccgx_hpi_device_set_quirk_kv (FuDevice *device,
|
||||
"invalid SiliconId");
|
||||
return FALSE;
|
||||
}
|
||||
if (g_strcmp0 (key, "FwAppType") == 0) {
|
||||
guint64 tmp = fu_common_strtoull (value);
|
||||
if (tmp < G_MAXUINT16) {
|
||||
self->fw_app_type = tmp;
|
||||
return TRUE;
|
||||
}
|
||||
g_set_error_literal (error,
|
||||
G_IO_ERROR,
|
||||
G_IO_ERROR_INVALID_DATA,
|
||||
"invalid FwAppType");
|
||||
return FALSE;
|
||||
}
|
||||
if (g_strcmp0 (key, "FlashRowSize") == 0) {
|
||||
guint64 tmp = fu_common_strtoull (value);
|
||||
if (tmp < G_MAXUINT32) {
|
||||
|
Loading…
Reference in New Issue
Block a user