Richard Hughes
|
95c98a95b6
|
Allow fwupdtool to dump details of common firmware formats
To do this, the plugins have to register the GType(s) they are using for
firmware, along with a short 'id' that can be used in CLI scripts.
|
2019-10-22 12:36:15 -05:00 |
|
Richard Hughes
|
8653e70480
|
trivial: Remove G_BEGIN_DECLS from all private headers
|
2019-10-09 20:02:16 +01:00 |
|
Richard Hughes
|
731875af86
|
Remove FU_PLUGIN_RULE_REQUIRES_QUIRK as all the plugins now use it
|
2019-10-09 20:02:16 +01:00 |
|
Richard Hughes
|
d8a8d5e776
|
Set all FuUdevDevice plugins to use FU_QUIRKS_PLUGIN
This speeds up startup as we're only calling fu_plugin_udev_device_added() on
plugins that can actually handle the device.
|
2019-10-09 20:02:16 +01:00 |
|
Richard Hughes
|
8523ebebf2
|
synaptics-rmi: Also add the product ID as a GUID without the minor version
Firmware may be suitable for all products that match the 'major ID' and so we
should provide an extra GUID to use in this case.
|
2019-10-09 14:18:10 +01: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
|
1c53c0eb86
|
synaptics-rmi: Simplify fu_synaptics_rmi_device_read()
We don't need a double loop here as we only ever require one READ_ADDR request.
|
2019-10-05 09:07:22 +01:00 |
|
Richard Hughes
|
08ddb2b7c4
|
synaptics-rmi: Set the version after ->setup has run
The build_id might be overwritten in the BL-specific setup.
|
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
|
3b8a2ea47f
|
syanptics-rmi: The build_id is 3 bytes long, not 2
|
2019-10-04 17:08:21 +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
|
4b30380e78
|
Provide a default implementation of common FuDevice actions
This reduces the amount of boilerplate in each plugin.
32 files changed, 156 insertions(+), 584 deletions(-)
|
2019-10-04 14:57:32 +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
|
b8e97e56c3
|
synaptics-rmi: Speed up reading the PDT from 900ms to 30ms
Don't continue to scan pages after the last function.
|
2019-10-03 15:14:10 +01:00 |
|
Richard Hughes
|
eeb6c22c1e
|
synaptics-rmi: Ignore the ATTN reports from the hardware when reading DATA
Fixes https://github.com/fwupd/fwupd/issues/1427
|
2019-10-03 13:10:58 +01:00 |
|
Richard Hughes
|
9f7a3364ae
|
synaptics-rmi: Move the fuzzing instructions to the toplevel README
|
2019-10-02 16:28:28 +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 |
|