mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-04 17:17:05 +00:00
Use the UDev devtype for quirk matching
This commit is contained in:
parent
0c447b3c47
commit
736a56ccee
@ -509,6 +509,15 @@ fu_udev_device_probe(FuDevice *device, GError **error)
|
||||
fu_device_add_instance_id_full(device, devid, FU_DEVICE_INSTANCE_FLAG_ONLY_QUIRKS);
|
||||
}
|
||||
|
||||
/* add devtype */
|
||||
tmp = g_udev_device_get_devtype(priv->udev_device);
|
||||
if (tmp != NULL) {
|
||||
g_autofree gchar *devtype = g_utf8_strup(tmp, -1);
|
||||
g_autofree gchar *devid = NULL;
|
||||
devid = g_strdup_printf("%s\\TYPE_%s", subsystem, devtype);
|
||||
fu_device_add_instance_id_full(device, devid, FU_DEVICE_INSTANCE_FLAG_ONLY_QUIRKS);
|
||||
}
|
||||
|
||||
/* add the driver */
|
||||
if (priv->driver != NULL) {
|
||||
g_autofree gchar *devid = NULL;
|
||||
|
@ -1,3 +1,5 @@
|
||||
# match all devices with this udev subsystem
|
||||
[THUNDERBOLT]
|
||||
[THUNDERBOLT\TYPE_THUNDERBOLT_DEVICE]
|
||||
Plugin = thunderbolt
|
||||
|
||||
[THUNDERBOLT\TYPE_THUNDERBOLT_RETIMER]
|
||||
Plugin = thunderbolt
|
||||
|
Loading…
Reference in New Issue
Block a user