mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 10:27:36 +00:00
vli: Only consider the high nibble when building the sub-version
This commit is contained in:
parent
ded9fef4b6
commit
5f3a2c0bc1
@ -280,7 +280,7 @@ fu_vli_pd_device_setup (FuVliDevice *device, GError **error)
|
|||||||
if (fu_vli_device_get_kind (device) == FU_VLI_DEVICE_KIND_UNKNOWN) {
|
if (fu_vli_device_get_kind (device) == FU_VLI_DEVICE_KIND_UNKNOWN) {
|
||||||
if (!fu_vli_pd_device_read_reg (self, 0x0018, &tmp, error))
|
if (!fu_vli_pd_device_read_reg (self, 0x0018, &tmp, error))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
switch (tmp) {
|
switch (tmp & 0xF0) {
|
||||||
case 0x00:
|
case 0x00:
|
||||||
fu_vli_device_set_kind (device, FU_VLI_DEVICE_KIND_VL100);
|
fu_vli_device_set_kind (device, FU_VLI_DEVICE_KIND_VL100);
|
||||||
break;
|
break;
|
||||||
@ -298,7 +298,7 @@ fu_vli_pd_device_setup (FuVliDevice *device, GError **error)
|
|||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
FWUPD_ERROR,
|
FWUPD_ERROR,
|
||||||
FWUPD_ERROR_INVALID_FILE,
|
FWUPD_ERROR_INVALID_FILE,
|
||||||
"unable to map 0x0018=%0x02x to device kind",
|
"unable to map 0x0018=0x%02X to device kind",
|
||||||
tmp);
|
tmp);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user