mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-16 08:02:06 +00:00
Show the USB4 NVM device ID in the debug output
Otherwise there's no way to find out what value the big-table-of-data needs.
This commit is contained in:
parent
404ab8e3e9
commit
891bae783c
@ -69,8 +69,11 @@ struct _FuIntelUsb4Device {
|
|||||||
FuUsbDevice parent_instance;
|
FuUsbDevice parent_instance;
|
||||||
guint blocksz;
|
guint blocksz;
|
||||||
guint8 intf_nr;
|
guint8 intf_nr;
|
||||||
|
/* from DROM */
|
||||||
guint16 nvm_vendor_id;
|
guint16 nvm_vendor_id;
|
||||||
guint16 nvm_model_id;
|
guint16 nvm_model_id;
|
||||||
|
/* from DIGITAL */
|
||||||
|
guint16 nvm_device_id;
|
||||||
};
|
};
|
||||||
|
|
||||||
G_DEFINE_TYPE(FuIntelUsb4Device, fu_intel_usb4_device, FU_TYPE_USB_DEVICE)
|
G_DEFINE_TYPE(FuIntelUsb4Device, fu_intel_usb4_device, FU_TYPE_USB_DEVICE)
|
||||||
@ -521,6 +524,7 @@ fu_intel_usb4_device_setup(FuDevice *device, GError **error)
|
|||||||
}
|
}
|
||||||
self->nvm_vendor_id = fu_intel_thunderbolt_nvm_get_vendor_id(FU_INTEL_THUNDERBOLT_NVM(fw));
|
self->nvm_vendor_id = fu_intel_thunderbolt_nvm_get_vendor_id(FU_INTEL_THUNDERBOLT_NVM(fw));
|
||||||
self->nvm_model_id = fu_intel_thunderbolt_nvm_get_model_id(FU_INTEL_THUNDERBOLT_NVM(fw));
|
self->nvm_model_id = fu_intel_thunderbolt_nvm_get_model_id(FU_INTEL_THUNDERBOLT_NVM(fw));
|
||||||
|
self->nvm_device_id = fu_intel_thunderbolt_nvm_get_device_id(FU_INTEL_THUNDERBOLT_NVM(fw));
|
||||||
|
|
||||||
name = g_strdup_printf("TBT-%04x%04x", self->nvm_vendor_id, self->nvm_model_id);
|
name = g_strdup_printf("TBT-%04x%04x", self->nvm_vendor_id, self->nvm_model_id);
|
||||||
fu_device_add_instance_id(device, name);
|
fu_device_add_instance_id(device, name);
|
||||||
@ -534,6 +538,7 @@ fu_intel_usb4_device_to_string(FuDevice *device, guint idt, GString *str)
|
|||||||
FuIntelUsb4Device *self = FU_INTEL_USB4_DEVICE(device);
|
FuIntelUsb4Device *self = FU_INTEL_USB4_DEVICE(device);
|
||||||
fu_string_append_kx(str, idt, "NvmVendorId", self->nvm_vendor_id);
|
fu_string_append_kx(str, idt, "NvmVendorId", self->nvm_vendor_id);
|
||||||
fu_string_append_kx(str, idt, "NvmModelId", self->nvm_model_id);
|
fu_string_append_kx(str, idt, "NvmModelId", self->nvm_model_id);
|
||||||
|
fu_string_append_kx(str, idt, "NvmDeviceId", self->nvm_device_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user