mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-13 19:37:17 +00:00
thunderbolt: Call fu_device_set_physical_id() during probe for retimer
Error will show up if (priv->physical_id == NULL) on fu_device_ensure_id(). This method is called after probe but before setup on fu_device_open. Call fu_device_set_physical_id() on fu_thunderbolt_device_probe() for the retimer case. Fixes https://github.com/fwupd/fwupd/issues/2371 Change-Id: I0e462fff5e8abf6073318f6424b6736afc8259b8
This commit is contained in:
parent
8c200a9e41
commit
0b74e2c91a
@ -222,6 +222,9 @@ fu_thunderbolt_device_probe (FuUdevDevice *device, GError **error)
|
||||
/* retimer */
|
||||
} else if (g_strcmp0 (tmp, "thunderbolt_retimer") == 0) {
|
||||
self->device_type = FU_THUNDERBOLT_DEVICE_TYPE_RETIMER;
|
||||
tmp = g_path_get_basename (fu_udev_device_get_sysfs_path (FU_UDEV_DEVICE (device)));
|
||||
if (tmp != NULL)
|
||||
fu_device_set_physical_id (FU_DEVICE (device), tmp);
|
||||
/* domain or unsupported */
|
||||
} else {
|
||||
g_set_error (error,
|
||||
|
Loading…
Reference in New Issue
Block a user