Commit 8e3f9c1a authored by Mario Limonciello's avatar Mario Limonciello Committed by Richard Hughes
Browse files

thunderbolt: ignore useless thunderbolt device types



Kernel 4.15 adds support for Thunderbolt P2P devices via
CONFIG_THUNDERBOLT_NET.  When turned on and activated fwupd will
show an empty device representing the IP connection between machines.

These device types aren't useful in fwupd and should be filtered.

Suggested-by: default avatarMika Westerberg <mika.westerberg@intel.com>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@dell.com>
parent 632ca482
......@@ -155,6 +155,7 @@ fu_plugin_thunderbolt_add (FuPlugin *plugin, GUdevDevice *device)
const gchar *vendor;
const gchar *version;
const gchar *devpath;
const gchar *devtype;
gboolean is_host;
gboolean is_safemode = FALSE;
guint16 did;
......@@ -173,6 +174,12 @@ fu_plugin_thunderbolt_add (FuPlugin *plugin, GUdevDevice *device)
devpath = g_udev_device_get_sysfs_path (device);
devtype = g_udev_device_get_devtype (device);
if (g_strcmp0 (devtype, "thunderbolt_device") != 0) {
g_debug ("ignoring %s device at %s", devtype, devpath);
return;
}
g_debug ("adding udev device: %s at %s", uuid, devpath);
id = fu_plugin_thunderbolt_gen_id (device);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment