Commit Graph

3093 Commits

Author SHA1 Message Date
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
Richard Hughes
4b1313b406 Split out the GByte helpers to a new source file 2022-06-14 14:36:52 -05:00
Richard Hughes
9d33c29e92 Split out the string helpers to a new source file 2022-06-14 14:36:52 -05:00
Richard Hughes
3fe9c0de34 Split out the CRC and sum functions to new source files 2022-06-14 14:36:52 -05:00
Richard Hughes
0d1ba6667f trivial: Remove a few ctags headers that snuck in 2022-06-14 17:57:38 +01:00
Richard Hughes
e60a877c46 uefi-capsule: Do not generate a capsule header for the FMP GUID
In theory, hardware with FMP should have fw_type=0x4 in the ESRT which
sets `_NO_CAPSULE_HEADER_FIXUP` -- but in reality that is not always
the case.
2022-06-14 14:11:26 +01:00
Sean Rhodes
6a1ceebd4c
plugins/intel-spi: Correct BIOS Control Device (#4742)
Correct the BIOS Control Device, which is should be 31.

This can be found on Intel doc numbers:
* 334819 (APL)
* 336561 (GLK)

Signed-off-by: Sean Rhodes <sean@starlabs.systems>
2022-06-14 09:07:48 +00:00
Gaël PORTAY
88db2a3f9e genesys: scaler: Fix calling to parent's vfunc close()
This uses the internal flag FU_DEVICE_INTERNAL_FLAG_USE_PARENT_FOR_OPEN,
to fix the calling to the parent's vfunc close() (it was calling the
parent's vfunc open() on close()).
2022-06-12 08:22:57 -04:00
Gaël PORTAY
d5b7206a3a trivial: genesys: Another nitpick round
See commit e6f049625e.
2022-06-12 08:22:57 -04:00
Gaël PORTAY
58102313bc genesys: usbhub: Do not claim interface
This removes the claim for interface 0; and removes both vfunc open()
and close() that become useless.

Fixes https://github.com/fwupd/fwupd/issues/4730
2022-06-12 07:02:49 -04:00
Gaël PORTAY
2e719aeb94 genesys: usbhub: Remove vfunc _probe()
This removes the vfunc _probe() that is not used anymore.
2022-06-12 07:02:49 -04:00
Richard Hughes
182c2c8445 scsi: Allow UFS disks to define the signed status in metadata 2022-06-11 11:06:01 +01:00
Richard Hughes
b3f69c1c47 scsi: Use the SCSI target to correctly set the physical ID
We don't want to include the SCSI LUN in the physical ID, as this is a
logical concept not relating to the hardware device.

Use the UDev devtype to find the 'correct' parent.
2022-06-11 11:06:01 +01:00
Richard Hughes
b9172ae5c5 logitech-bulkcontroller: Reset the progress counter when required 2022-06-11 11:05:08 +01:00
Richard Hughes
9a33c96b7c logitech-bulkcontroller: Split up two distinct progress sections 2022-06-11 11:05:08 +01:00
Richard Hughes
31275cf89a logitech-bulkcontroller: Use fu_progress_step_done() when writing chunks 2022-06-11 11:05:08 +01:00
Richard Hughes
2b10848e57 logitech-bulkcontroller: Only move the progressbar forwards when writing 2022-06-11 11:05:08 +01:00
Richard Hughes
46f4d9b993 genesys: Add a trivial missed quirk key 2022-06-10 19:00:23 +01:00
Gaël PORTAY
d15f0b1cca steelseries: fizz: Use fu_common_strsafe() 2022-06-10 10:07:28 -04:00
Gaël PORTAY
8d4d2f2087 steelseries: Add hid support to detect Bluetooth devices 2022-06-10 10:07:28 -04:00
Richard Hughes
619677fc3f redfish: Also reconnect the network during BMC re-coldplug 2022-06-10 13:15:08 +01:00
Richard Hughes
b75553cb49 redfish: Be more helpful when debugging connection failures 2022-06-10 13:15:08 +01:00
Richard Hughes
09f9ea7d06 redfish: Autoconnect the Redfish network device when rebooting the BMC 2022-06-10 11:09:26 +01:00
Gaël PORTAY
99f310e11a steelseries: Add datasz to fu_steelseries_device_cmd()
Additionaly, this:
 - removes the unused function fu_steelseries_device_get_transfer_size()
 - renames function fu_steelseries_device_command_error_to_error() to
  fu_steelseries_fizz_command_error_to_error()
2022-06-09 10:57:26 -04:00
Gaël PORTAY
40ba65ce28 steelseries: fizz: Fiz command size
The size of a command is 8bits long.
2022-06-09 10:57:26 -04:00
Richard Hughes
8a706b470a scsi: Call the ->probe superclass
I don't *think* it's going to add anything remarkable, but it's good to
match the other plugins.
2022-06-08 07:56:45 +01:00
Richard Hughes
79cbdd9395 scsi: Look for platform devices if there is no PCI parent 2022-06-08 07:56:45 +01:00
Andrii Dushko
4b242efe91
corsair: improve subdevice handling
* add IN endpoint flushing for a subdevice
* don't check for a subdevice if in bootloader mode
* add delay for a first subdevice check to prevent unneeded polling
2022-06-07 17:09:26 +03:00
Gaël PORTAY
e5d489f680 genesys: Add M27fd AIM101 hardware 2022-06-07 05:42:44 -04:00
Gaël PORTAY
0fbd5e17fe genesys: scaler: Remove FuGenesysMtkFooter and XOR encryption 2022-06-06 16:32:17 -04:00
Richard Hughes
0c8079b13c redfish: Never manually modprobe ipmi-devintf
This produces startup failures on images that do not ship that exact
module, e.g. guest-images.

Just rely on the kernel driver to be auto-loaded when required.

Fixes https://github.com/fwupd/fwupd/issues/4550
2022-06-06 08:20:21 -05:00
Richard Hughes
43ed8ec7bc Remove platform-integrity plugin
The kernel module never made it upstream, and LKML has other ideas.
2022-06-06 10:03:04 +01:00
Gaël PORTAY
3063280ae8 genesys: Allow to force install even if public-key mismatch 2022-06-06 03:40:32 -04:00
Gaël PORTAY
882ab0812f genesys: scaler: Allow to specify Cfi
This allows to specify the Cfi device via the GenesysScalerCfiFlashId
quirk key.
2022-06-06 03:40:32 -04:00
Gaël PORTAY
6f7c4bb195 genesys: scaler: Check for firmware size 2022-06-06 03:40:32 -04:00
Gaël PORTAY
ace3f343fc genesys: scaler: Fix checking for CFI size 2022-06-06 03:40:32 -04:00
Gaël PORTAY
81f40da143 genesys: scaler: Increase retry timing after erase commands 2022-06-06 03:40:32 -04:00