Blame SOURCES/0001-synaptics-prometheus-Force-the-minor-version-from-0x.patch

92fc95
From d7a1eb17bef650f13e7f96430f99294c36a40806 Mon Sep 17 00:00:00 2001
92fc95
From: Vincent Huang <vincent.huang@tw.synaptics.com>
92fc95
Date: Tue, 19 May 2020 13:09:28 +0800
92fc95
Subject: [PATCH] synaptics-prometheus: Force the minor version from 0x02 to
92fc95
 0x01 to make sure the devices can be updated back to 0x01.
92fc95
92fc95
---
92fc95
 plugins/synaptics-prometheus/fu-synaprom-device.c | 8 ++++++++
92fc95
 1 file changed, 8 insertions(+)
92fc95
92fc95
diff --git plugins/synaptics-prometheus/fu-synaprom-device.c plugins/synaptics-prometheus/fu-synaprom-device.c
92fc95
index 5a19203c..299ebde2 100644
92fc95
--- a/plugins/synaptics-prometheus/fu-synaprom-device.c
92fc95
+++ b/plugins/synaptics-prometheus/fu-synaprom-device.c
92fc95
@@ -142,6 +142,14 @@ fu_synaprom_device_set_version (FuSynapromDevice *self,
92fc95
 {
92fc95
 	g_autofree gchar *str = NULL;
92fc95
 
92fc95
+	/* We decide to skip 10.02.xxxxxx firmware, so we force the minor version from 0x02 
92fc95
+	** to 0x01 to make the devices with 0x02 minor version firmware allow to be updated
92fc95
+	** back to minor version 0x01. */
92fc95
+	if (vmajor == 0x0a && vminor == 0x02) {
92fc95
+		g_debug ("quirking vminor from %02x to 01", vminor);
92fc95
+		vminor = 0x01;
92fc95
+	}
92fc95
+
92fc95
 	/* set display version */
92fc95
 	str = g_strdup_printf ("%02u.%02u.%u", vmajor, vminor, buildnum);
92fc95
 	fu_device_set_version (FU_DEVICE (self), str);
92fc95
-- 
92fc95
2.26.2
92fc95