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