From 0f72ef2f8877061e8ef48d87a45b7de3cddec69d Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 30 Aug 2018 16:37:32 +0100 Subject: [PATCH] trivial: Invalidate the probe if the FuDevice is closed For DFU it is important to re-get the interfaces and list of quirks when switching from runtime -> bootloader -> runtime. --- src/fu-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fu-device.c b/src/fu-device.c index 4b68ee32f..bce113d10 100644 --- a/src/fu-device.c +++ b/src/fu-device.c @@ -1643,6 +1643,9 @@ fu_device_close (FuDevice *device, GError **error) if (!klass->close (device, error)) return FALSE; } + + /* probe if we re-open */ + priv->done_probe = FALSE; return TRUE; }