fu_string_append_kx(str, idt, "NvmDeviceId", self->nvm_device_id);
}
+static void
+fu_thunderbolt_device_set_progress(FuDevice *self, FuProgress *progress)
+{
+ fu_progress_set_id(progress, G_STRLOC);
+ fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 0, "detach");
+ fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_WRITE, 78, "write");
+ fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_RESTART, 22, "attach");
+ fu_progress_add_step(progress, FWUPD_STATUS_DEVICE_BUSY, 0, "reload");
+}
+
static void
fu_intel_usb4_device_init(FuIntelUsb4Device *self)
{
klass_device->prepare_firmware = fu_intel_usb4_device_prepare_firmware;
klass_device->write_firmware = fu_intel_usb4_device_write_firmware;
klass_device->activate = fu_intel_usb4_device_activate;
+ klass_device->set_progress = fu_thunderbolt_device_set_progress;
}