From ed3f6cfd4fcb0cd8ba360c35e515c1587edd97c2 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 26 Nov 2019 11:53:00 +0000 Subject: [PATCH] synaptics-prometheus: Manually set the bootloader mode when attaching The fingerprint reader device doesn't actually disconnect and reconnect and so the FuDevice->setup() vfunc never gets called. --- plugins/synaptics-prometheus/fu-synaprom-device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/synaptics-prometheus/fu-synaprom-device.c b/plugins/synaptics-prometheus/fu-synaprom-device.c index ad1816dd8..45d1a4f51 100644 --- a/plugins/synaptics-prometheus/fu-synaprom-device.c +++ b/plugins/synaptics-prometheus/fu-synaprom-device.c @@ -394,6 +394,7 @@ fu_synaprom_device_attach (FuDevice *device, GError **error) g_prefix_error (error, "failed to force-reset device: "); return FALSE; } + fu_device_remove_flag (device, FWUPD_DEVICE_FLAG_IS_BOOTLOADER); return TRUE; } @@ -428,6 +429,7 @@ fu_synaprom_device_detach (FuDevice *device, GError **error) g_prefix_error (error, "failed to force-reset device: "); return FALSE; } + fu_device_add_flag (device, FWUPD_DEVICE_FLAG_IS_BOOTLOADER); return TRUE; }