mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-04 14:50:53 +00:00
Copy over parent GUIDs from other plugin donors
The proxy registration was losing this detail so Dell docks were not setting this properly for child devices.
This commit is contained in:
parent
0235b70463
commit
3588cd0e06
@ -1768,6 +1768,7 @@ fu_device_incorporate (FuDevice *self, FuDevice *donor)
|
||||
{
|
||||
FuDevicePrivate *priv = GET_PRIVATE (self);
|
||||
FuDevicePrivate *priv_donor = GET_PRIVATE (donor);
|
||||
GPtrArray *parent_guids = fu_device_get_parent_guids (donor);
|
||||
g_autoptr(GList) metadata_keys = NULL;
|
||||
|
||||
/* copy from donor FuDevice if has not already been set */
|
||||
@ -1777,6 +1778,8 @@ fu_device_incorporate (FuDevice *self, FuDevice *donor)
|
||||
fu_device_set_equivalent_id (self, fu_device_get_equivalent_id (donor));
|
||||
if (priv->quirks == NULL)
|
||||
fu_device_set_quirks (self, fu_device_get_quirks (donor));
|
||||
for (guint i = 0; i < parent_guids->len; i++)
|
||||
fu_device_add_parent_guid (self, g_ptr_array_index (parent_guids, i));
|
||||
metadata_keys = g_hash_table_get_keys (priv_donor->metadata);
|
||||
for (GList *l = metadata_keys; l != NULL; l = l->next) {
|
||||
const gchar *key = l->data;
|
||||
|
Loading…
Reference in New Issue
Block a user