diff options
author | davidycchen <davidycchen@google.com> | 2021-10-18 18:27:51 +0800 |
---|---|---|
committer | davidycchen <davidycchen@google.com> | 2021-10-18 18:27:51 +0800 |
commit | a756f4134d9143d125ea87ae805fa068c4c7dba3 (patch) | |
tree | 58faf6a417a782bc8cd541fc93d07d944cb3c723 /tcm | |
parent | 4b9e3a62a26612758b67fa70ca123b84ae1f4b34 (diff) | |
download | synaptics_touch-a756f4134d9143d125ea87ae805fa068c4c7dba3.tar.gz |
synaptics: update firmware when device ID and build ID is different.
Instead of updating the touch firmware when the build ID is newer the
device ID, update it when they are different.
Bug: 203368309
Test: reboot can roll back touch firmware to older version.
Signed-off-by: davidycchen <davidycchen@google.com>
Change-Id: Ic68e96e9915213326aa09c3b221a461f2dfc04f9
Diffstat (limited to 'tcm')
-rw-r--r-- | tcm/synaptics_touchcom_func_reflash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcm/synaptics_touchcom_func_reflash.c b/tcm/synaptics_touchcom_func_reflash.c index af67b4a..a434bac 100644 --- a/tcm/synaptics_touchcom_func_reflash.c +++ b/tcm/synaptics_touchcom_func_reflash.c @@ -218,8 +218,8 @@ int syna_tcm_compare_image_id_info(struct tcm_dev *tcm_dev, LOGN("Device firmware ID: %d, image build id: %d\n", device_fw_id, image_fw_id); - if (image_fw_id > device_fw_id) { - LOGN("Image build ID newer than device fw ID\n"); + if (image_fw_id != device_fw_id) { + LOGN("Image build ID is different from device fw ID\n"); result = UPDATE_FIRMWARE_CONFIG; goto exit; } else { |