Ignore mei devices without a device file

Else we get a whole ton of log messages on --verbose.
This commit is contained in:
Richard Hughes 2022-06-29 20:14:23 +01:00
parent a69341b228
commit b21d29d98d

View File

@ -46,6 +46,13 @@ fu_udev_backend_device_add(FuUdevBackend *self, GUdevDevice *udev_device)
}
}
/* ignore some devices */
if (gtype == FU_TYPE_MEI_DEVICE && g_udev_device_get_device_file(udev_device) == NULL) {
g_debug("ignoring MEI device %s as no device file",
g_udev_device_get_sysfs_path(udev_device));
return;
}
/* success */
device = g_object_new(gtype,
"context",