]> git.proxmox.com Git - fwupd.git/commitdiff
intel-usb4: Set the remove delay to avoid a console warning
authorRichard Hughes <richard@hughsie.com>
Mon, 20 Feb 2023 11:20:31 +0000 (11:20 +0000)
committerMario Limonciello <mario.limonciello@amd.com>
Thu, 23 Feb 2023 19:04:12 +0000 (13:04 -0600)
plugins/intel-usb4/fu-intel-usb4-device.c

index 1f5bac834a4d99c49289b32ea968f54ada54b3a4..bb20a13f0ad2c39421d9feb7b84d1748ebb4eee1 100644 (file)
@@ -59,6 +59,8 @@
 /* Default length for NVM READ */
 #define NVM_READ_LENGTH 0x224
 
+#define FU_INTEL_USB4_DEVICE_REMOVE_DELAY 60000 /* ms */
+
 struct mbox_regx {
        guint16 opcode;
        guint8 rsvd;
@@ -565,6 +567,7 @@ fu_intel_usb4_device_init(FuIntelUsb4Device *self)
        fu_device_add_flag(FU_DEVICE(self), FWUPD_DEVICE_FLAG_SIGNED_PAYLOAD);
        fu_device_set_version_format(FU_DEVICE(self), FWUPD_VERSION_FORMAT_PAIR);
        fu_device_add_internal_flag(FU_DEVICE(self), FU_DEVICE_INTERNAL_FLAG_INHERIT_ACTIVATION);
+       fu_device_set_remove_delay(FU_DEVICE(self), FU_INTEL_USB4_DEVICE_REMOVE_DELAY);
 }
 
 static void