From 013475fc4928e5ddb56e543e3a0c72478054c253 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 15 Mar 2022 17:10:05 +0000 Subject: [PATCH] trivial: Actually open the GPIO device before querying the chipinfo Set the GPIO open flags as without the fd is not opened. Fixes https://github.com/fwupd/fwupd/issues/4388 --- plugins/gpio/fu-gpio-device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/gpio/fu-gpio-device.c b/plugins/gpio/fu-gpio-device.c index 22797f5d1..6153a8cb1 100644 --- a/plugins/gpio/fu-gpio-device.c +++ b/plugins/gpio/fu-gpio-device.c @@ -190,6 +190,7 @@ fu_gpio_device_assign(FuGpioDevice *self, const gchar *id, gboolean value, GErro static void fu_gpio_device_init(FuGpioDevice *self) { + fu_udev_device_set_flags(FU_UDEV_DEVICE(self), FU_UDEV_DEVICE_FLAG_OPEN_READ); } static void