mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-09 11:55:27 +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);
|
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 */
|
/* add the driver */
|
||||||
if (priv->driver != NULL) {
|
if (priv->driver != NULL) {
|
||||||
g_autofree gchar *devid = NULL;
|
g_autofree gchar *devid = NULL;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
# match all devices with this udev subsystem
|
[THUNDERBOLT\TYPE_THUNDERBOLT_DEVICE]
|
||||||
[THUNDERBOLT]
|
Plugin = thunderbolt
|
||||||
|
|
||||||
|
[THUNDERBOLT\TYPE_THUNDERBOLT_RETIMER]
|
||||||
Plugin = thunderbolt
|
Plugin = thunderbolt
|
||||||
|
Loading…
Reference in New Issue
Block a user