From 4f0e344a0ad9791da24faf10afa900ca32a9c00e Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 10 Mar 2020 16:12:07 +0000 Subject: [PATCH] Ensure that the DeviceID is set for child devices If we do not ->open() the device (e.g. because it uses a parent device to proxy writes) then the child never gets a DeviceID which causes all kinds of issues. --- libfwupdplugin/fu-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libfwupdplugin/fu-device.c b/libfwupdplugin/fu-device.c index 6b1179d2f..55698aa9f 100644 --- a/libfwupdplugin/fu-device.c +++ b/libfwupdplugin/fu-device.c @@ -572,6 +572,9 @@ fu_device_add_child (FuDevice *self, FuDevice *child) } } + /* ensure the ID is converted */ + fu_device_ensure_id (child, NULL); + /* ensure the parent is also set on the child */ fu_device_set_parent (child, self);