From d7b682430efb8f0718306579f64ed4bda423b4a0 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 14 Jan 2022 16:58:37 +0000 Subject: [PATCH] thunderbolt: Set the retimer NVM version --- plugins/thunderbolt/fu-thunderbolt-retimer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/thunderbolt/fu-thunderbolt-retimer.c b/plugins/thunderbolt/fu-thunderbolt-retimer.c index 384c4b2cc..e4d1f71da 100644 --- a/plugins/thunderbolt/fu-thunderbolt-retimer.c +++ b/plugins/thunderbolt/fu-thunderbolt-retimer.c @@ -98,6 +98,10 @@ fu_thunderbolt_retimer_setup(FuDevice *device, GError **error) guint16 vid; g_autofree gchar *instance = NULL; + /* get version */ + if (!fu_thunderbolt_device_get_version(FU_THUNDERBOLT_DEVICE(self), error)) + return FALSE; + /* as defined in PCIe 4.0 spec */ vid = fu_udev_device_get_vendor(FU_UDEV_DEVICE(self)); if (vid == 0x0) {