From 6a1a49eaef73b28dc0a7d8dd3c3ba9041387b6dd Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Fri, 11 Sep 2020 13:40:18 -0500 Subject: [PATCH] dell-dock: mirror updatable flag into thunderbolt This makes sure that if an update is pending (as stored in the EC), Thunderbolt won't show in a needing update state again. Fixes: #2374 --- plugins/dell-dock/fu-plugin-dell-dock.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/dell-dock/fu-plugin-dell-dock.c b/plugins/dell-dock/fu-plugin-dell-dock.c index 2d5a2aac5..5c3396500 100644 --- a/plugins/dell-dock/fu-plugin-dell-dock.c +++ b/plugins/dell-dock/fu-plugin-dell-dock.c @@ -121,6 +121,17 @@ fu_plugin_usb_device_added (FuPlugin *plugin, return TRUE; } +void +fu_plugin_device_registered (FuPlugin *plugin, FuDevice *device) +{ + /* thunderbolt plugin */ + if (g_strcmp0 (fu_device_get_plugin (device), "thunderbolt") != 0 || + fu_device_has_flag (device, FWUPD_DEVICE_FLAG_INTERNAL)) + return; + /* clone updatable flag to leave in needs activation state */ + fu_dell_dock_clone_updatable (device); +} + gboolean fu_plugin_device_removed (FuPlugin *plugin, FuDevice *device, GError **error) {