David Chiu
5abbb85e58
synaptics-rmi: Fix firmware update of pointing device on Lenovo ThinkPad Nano
2021-03-03 16:07:05 +00:00
Richard Hughes
b1e4a23597
synaptics-rmi: Read from the device in a more safe way
2021-02-10 16:29:57 +00:00
Richard Hughes
d99f86023f
trivial: Add getters to FuChunk
...
At the moment FuChunks are sometimes mutable, and sometimes immutable, and it's
all a bit too low level for comfort.
Before we can do any kind of optimisation or verification we need plugins to
stop reading directly from the C structure. The aim here is to make FuChunk
optionally mutable without making assumptions about the memory model, and also
to be able to introspect it for the docs.
2021-01-28 16:42:54 +00:00
Richard Hughes
a0dd0e2be2
synaptics-rmi: Split out the HID specific parts to FuSynapticsRmiDevice
2021-01-18 21:18:02 +00:00
Richard Hughes
5c9b1fcc81
Only include the start year in the copyright header
...
The end year is legally and functionally redundant, and more importantly causes
cherry-pick conflicts when trying to maintain old branches. Use git for history.
2021-01-07 14:48:16 +00:00
Richard Hughes
58993ac005
trivial: Fix some error prefixes
2020-11-06 09:57:03 +00:00
Richard Hughes
04fde48e9a
synaptics-rmi: Add a missing error enum value
...
This was spotted whilst fixing the last bug...
2020-02-07 15:16:39 +00:00
Richard Hughes
9baaacc099
synaptics-rmi: Correctly identify a checksum failure
...
The typo was spotted by Coverity.
2020-02-07 15:16:39 +00:00
Richard Hughes
2f85c24363
synaptics-rmi: Fix Coverity issue that is impossible to hit in reality
...
The guint16 was promoted to (signed) int for the multiplication, which meant
that the highest address possible was 0x7FFFFFFF not 0xFFFFFFFF. Which doesn't
really matter in reality, as all addresses are much smaller than that now.
2020-02-07 15:16:39 +00:00
Richard Hughes
83fe59629d
synaptics-rmi: Correctly set the payload length rather than hardcoding it
2019-10-08 12:32:09 +01:00
Richard Hughes
9a5f076b6b
synaptics-rmi: Write the core config correctly
2019-10-08 12:32:09 +01:00
Richard Hughes
d0fbc34704
synaptics-rmi: Decode BL7 status failures as actual errors
2019-10-08 12:32:09 +01:00
Richard Hughes
5b03566465
synaptics-rmi: Add some trivial debugging to help debug a write problem
2019-10-08 12:32:09 +01:00
Richard Hughes
d6fc172ec9
synaptics-rmi: Check the correct register when querying bootloader mode
2019-10-07 11:50:49 +01:00
Richard Hughes
2524c3fd79
synaptics-rmi: Copy the behavior of rmi4utils for BL7 detach
2019-10-05 09:07:22 +01:00
Richard Hughes
339f823ee2
synaptics-rmi: Use the correct mask when getting the bootloader mode on BL7
2019-10-05 09:07:22 +01:00
Richard Hughes
007140bd78
synaptics-rmi: Read the config partition the same as rmi4utils
2019-10-04 15:47:16 +01:00
Richard Hughes
0e17281997
synaptics-rmi: Add some debugging for BL7 devices
2019-10-04 10:59:08 +01:00
Richard Hughes
c6cda8bc71
synaptics-rmi: Do as little as possible in device setup
...
This reduces the setup time by another 70ms and also makes the plugin simpler.
2019-10-03 15:14:10 +01:00
Richard Hughes
e87abd81a2
synaptics-rmi: Fix the packing of the partition table
...
The data was part of the union, not the struct. It's also binary format and
thus needs to be packed.
2019-10-02 12:28:06 +01:00
Richard Hughes
63aa6759f0
Add a plugin to update Synaptics RMI4 devices
2019-10-02 10:45:13 +01:00