Commit Graph

3129 Commits

Author SHA1 Message Date
Richard Hughes
85c01e1b5e realtek-mst: Simply quirk matching
Existing firmware is being deployed using 'fwupdtool install-blob' and
so changing the instance ID to be more standard is fine.
2022-07-09 14:57:28 +01:00
Richard Hughes
f8932b0162 parade-lspcon: Simply quirk matching
Existing firmware is being deployed using 'fwupdtool install-blob' and
so changing the instance ID to be more standard is fine.
2022-07-09 14:57:28 +01:00
Richard Hughes
b666623fad fastboot: Support SHA256 hashes too 2022-07-09 14:56:28 +01:00
Richard Hughes
5981472a63 dfu: Fix a regression for devices using the Atmel FLIP Bootloader
This regressed in faa7871b08 as the
ONLY_QUIRK vendor instance ID was no longer being added when the device
switched into bootloader mode.

We could add back the ->probe() to get the vendor quirk, but arguably
the most sensible and correct thing to do is to just use the PID as
well. There is only two PIDs we care about, and matching *every* device
with the vendor ID is probably asking for trouble with other devices.
2022-07-08 12:34:35 +01:00
Richard Hughes
c9a8c42aca synaptics-prometheus: trivial: Fix FuProgress guess 2022-07-08 10:21:52 +01:00
Mario Limonciello
5f202fca1e trivial: drop plugin_thunderbolt configuration option
This isn't really needed anymore because the only dependency is
gudev which is already a feature that is disabled dynamicall.y
2022-07-05 11:23:02 -05:00
Richard Hughes
ba72b1a8a5 ccgx: Only show the FwImageType when known 2022-07-05 11:39:42 +01:00
hugh712
4bf53196fc trivial: don't show devices with inhibit id: hidden
dell-dock: don't show thunderbolt's usb4 device, if inhibited
2022-07-05 08:54:12 +01:00
Richard Hughes
07d5bf12e4 logitech-hidpp: Fix flashing the K750 keyboard
Add the legacy instance IDs to make old firmware work.
2022-07-05 08:52:54 +01:00
hugh712
dc74008517 dell-dock: Use accurate FuProgress steps for ec and mst 2022-07-04 10:47:06 +01:00
Richard Hughes
ced79fce4a Create the better device GType in the backend
It is weird to do this when constructing the object, and it allows us
to match PossiblePlugin quirk matches on potentially better instance
IDs added by the superclass.
2022-06-30 19:06:38 +01:00
Richard Hughes
a61bb37881 Build the quirk files into the daemon as a GResource
Interestingly, this increases the `fwupd` binary size by ~30kb but
reduces the installed size of /usr/share/fwupd/quirks.d by ~330kb.
2022-06-30 18:52:24 +01:00
Crag Wang
e8fc812c29 dell-dock: update doc to clarify the inhibition of usb4 device 2022-06-30 12:13:19 +08:00
Richard Hughes
4413b7d2e9 facp: Downgrade a warning about missing FACP
This is the same as we did for the IVRS.
2022-06-29 16:44:18 +01:00
Jerry Zhang
870d149a11 dfu: Add Force-Detach to bypass audio/video streaming check
Some Poly usb devices will STALL the dfu detach request if the
audio/video is streaming. By setting the high byte of wIndex
in detach control request to 1, it could bypass the streaming
status check.
2022-06-29 15:14:03 +01:00
Richard Hughes
7a44ab39dd synaptics-rmi: Fix a progress warning when writing an image with a signature 2022-06-29 10:47:27 +01:00
Richard Hughes
c1fc8a55e0 Always set the progress ID when setting the number of steps
This fixes a potential critical warning (seen in the hailuck plugin,
although others may be affected too) where the parent does not set the
ID before the child sets the number of steps.

It's much more helpful to have the child position for debugging anyway,
so just set it in all cases.
2022-06-29 10:47:27 +01:00
Chang Po-Hung
ffac50c55d add new device support pixart-rf 2022-06-27 23:08:42 -05:00
Crag Wang
f68092ea9d dell-dock: cache hub device and add it until ec is added
The usb3 hub 413c:b06f may be added to the plugin ahead of ec device
while dock type is yet known at that time. Cache the hub until ec can
tell the instance id, then add it to the plugin.
2022-06-28 06:49:24 +08:00
Richard Hughes
0491b07a93 Make the FuFirmware->parse() vfunc more helpful
This removes the 100% unused addr_end parameter and explicitly makes
the addr_start into the start offset in more cases.
2022-06-27 15:40:11 -05:00
Richard Hughes
c4cdda0b87 trivial: Do not load the GResource when not required 2022-06-27 19:06:21 +01:00
Richard Hughes
e6e0de5405 system76-launch: Wait for device to re-enumerate if unlocked and reset
Fixes https://github.com/fwupd/fwupd/issues/4762
2022-06-27 06:49:12 +01:00
Richard Hughes
2ca843b75c trivial: Fix self test failure on ppc64be 2022-06-26 17:28:04 -05:00
Richard Hughes
722360d468 synaptics-cape: Fix a big endian compile warning
The cmd_id is 16 bits wide.
2022-06-26 17:28:04 -05:00
Mario Limonciello
fb701a0426 Fix running fwupdtool security with a plugin allowlist
A number of plugins make assumptions that ->init() was called, but
when an allowlist is used this won't have been called.
2022-06-26 13:57:53 -05:00
Richard Hughes
b8be6daf1f trivial: Use 'priv' for plugin private data to be consistent 2022-06-26 13:57:53 -05:00
Richard Hughes
a70d005ea3 trivial: Use a better error message disambiguate an error message 2022-06-23 21:56:06 +01:00
Mario Limonciello
030a0d51c1 trivial: quiet the modem manager error about unable to probe
We don't show messages in the logs about unable to probe other
device types by default, MM should be no different.
This gets rid of this message coming up every fwupd startup on a
EM05-G:
"failed to probe MM device: modem cannot be put in programming mode"
2022-06-23 14:53:58 -05:00
Andrii Dushko
8cb70497ac corsair: remove support for some devices
Vendor has decided to remove these devices from the initial supported
device list:
* SABRE RGB PRO WIRELESS Gaming Mouse
* SLIPSTREAM WIRELESS USB Receiver
2022-06-23 20:05:43 +01:00
daniil-lunev
ab8a0533d8
Add eMMC guids to include FW version
Those are required if we need to re-map FW versions with quirks. Some
devices physical version number are not consecutively mapped to logical
version number.
2022-06-22 15:58:57 +01:00
Andrii Dushko
802105af7f corsair: add HARPOON RGB Wireless mouse 2022-06-22 15:58:12 +01:00
Richard Hughes
dc1730c439 trivial: Some clang-format fixups 2022-06-22 15:55:32 +01:00
Jeremy Soller
751de3f4d2 Add System76 launch_2 2022-06-21 09:58:51 -05:00
Gaël PORTAY
299b42fe96 trivial: Make meson.build indentation consistent 2022-06-21 03:27:38 -04:00
Richard Hughes
5e899535d4 amt: Modernize the plugin and split out common functionality
The MEI code is soon going to be used by a new plugin, so split it
out into libfwupdplugin like we did i2c.
2022-06-21 08:10:04 +01:00
Richard Hughes
b3800609b6 Ensure FuDevice->set_progress() always sets 4 steps 2022-06-16 19:54:46 +01:00
Richard Hughes
faa7871b08 Remove duplicate ->probe() calls to speed up startup by 150ms
Now incorporate is fixed to copy across the properties we need in the
superclass, we don't need to do the subclass ->probe().

Note, we still need to do the subclassed ->probe() when using
FU_UDEV_DEVICE_FLAG_VENDOR_FROM_PARENT or when looking at properties
on the parent device.

This also removes the spurious 'already set GType to FuVliUsbhubDevice,
ignoring FuVliUsbhubDevice' messages when running the daemon.
2022-06-14 21:01:57 +01:00
Richard Hughes
21e3ef4347 optionrom: Reorder plugins FuDevice->probe() to speed up daemon startup
There's no point scanning the baseclass again if we can quickly check
if the device is valid.
2022-06-14 21:01:57 +01:00
Richard Hughes
2dc6a7ef73 Remove fu_i2c_device_read_full()
Just use the version with the length specified.
2022-06-14 14:36:52 -05:00
Richard Hughes
fc2da47b69 Remove fu_strtoull_full() 2022-06-14 14:36:52 -05:00
Richard Hughes
377bcb718f Remove the 'common' prefix from the volume creation methods 2022-06-14 14:36:52 -05:00
Richard Hughes
4105768a01 Remove the 'common' prefix when parsing version numbers 2022-06-14 14:36:52 -05:00
Richard Hughes
1d9d82ebc5 Use a common prefix for CPU-specific methods 2022-06-14 14:36:52 -05:00
Richard Hughes
3e0a4dc1c3 Be smarter and include less header files per source file 2022-06-14 14:36:52 -05:00
Richard Hughes
067d7d8088 Split out the path helpers to a new source file 2022-06-14 14:36:52 -05:00
Richard Hughes
14cc9b2064 Unexport fu_common_reverse_uint8()
It's only used in one little-used plugin.
2022-06-14 14:36:52 -05:00
Richard Hughes
7f86ffab6f Split out the dump helpers to a new source file 2022-06-14 14:36:52 -05:00
Richard Hughes
3f77af3cd4 Split out the kernel helpers to a new source file 2022-06-14 14:36:52 -05:00
Richard Hughes
425fedcca1 trivial: Remove fu_byte_array_set_size_full() 2022-06-14 14:36:52 -05:00
Richard Hughes
ed1b13da28 Split out the memory helpers to a new source file 2022-06-14 14:36:52 -05:00