Richard Hughes
af862c615d
Fix -Dbuild=library target
2023-02-23 13:04:12 -06:00
Richard Hughes
5db1809619
trivial: Add emulation data for the HP G5 dock
2023-02-23 13:04:12 -06:00
Richard Hughes
7dfe9792cd
trivial: Add device test data for the HP 910 keyboard and mouse
2023-02-23 13:04:12 -06:00
Richard Hughes
c96391ed8d
Use a predefined message when emulating
...
This allow us to guide the user through emulation in gnome-firmware.
2023-02-23 13:04:12 -06:00
Richard Hughes
a34b0490b7
trivial: Correctly fallback from SMBIOS to FDT
2023-02-23 13:04:12 -06:00
Richard Hughes
f98e0e338b
Correctly fall back to the compatible vendor when FDT vendor is missing
...
Fixes https://github.com/fwupd/fwupd/issues/5530
2023-02-23 13:04:12 -06:00
Richard Hughes
bb6f4f0d20
trivial: Never add missing FDT values as a HwID
2023-02-23 13:04:12 -06:00
Richard Hughes
2bf53c3cce
trivial: Fix critical warning when using fwupdtool export-hwids
2023-02-23 13:04:12 -06:00
Richard Hughes
c7e79e1e76
ccgx: Make the default image type for FuCcgxDmcDevice to be DMC_COMPOSITE
...
This means most devices do not need to specify additional quirks.
2023-02-23 13:04:12 -06:00
Richard Hughes
ab2dffac5f
Allow downloading files in fwupdtool
...
The useragent was being set as 'fwupdtool/1.8.11 fwupd/(NULL)' which the LVFS
did not like. As we're using fwupdtool without a daemon proxy just set the
fwupd version manually.
Fixes https://github.com/fwupd/fwupd/issues/5519
2023-02-23 13:04:12 -06:00
Richard Hughes
574b4c1979
Show the 4XX download failure in the error output
2023-02-23 13:04:12 -06:00
Mario Limonciello
3920c9db6f
trivial: logitech-hidpp: move the check for CONFIG_HIDRAW into probe
...
The kernel should have loaded hidraw support by the time that we probe
a device. This fixes logitech devices not showing up after startup
if they weren't plugged in initially.
Fixes : #5525
2023-02-23 13:04:12 -06:00
Richard Hughes
d011a7d6ba
Set the device percentage and status for the duration
...
Fixes part of https://github.com/fwupd/fwupd/issues/5522
2023-02-23 13:04:12 -06:00
Richard Hughes
a5a98b00bd
trivial: Fix the gtk-doc header to reflect reality
2023-02-23 13:04:12 -06:00
Richard Hughes
7afc48da35
Include python3-uswid in the container so fwupd-efi can include the uSWID section
2023-02-23 13:04:12 -06:00
Richard Hughes
67f7db8f6d
trivial: Add a clang-tidy template
2023-02-23 13:04:12 -06:00
Richard Hughes
2077861dea
trivial: Fix warning: function has a definition with different parameter names
2023-02-23 13:04:12 -06:00
Richard Hughes
21e08ff483
trivial: Fix warning: return after continue
2023-02-23 13:04:12 -06:00
Richard Hughes
9defbce2c7
trivial: Fix warning: parameter is const-qualified in the function declaration
2023-02-23 13:04:12 -06:00
Richard Hughes
648e0c6858
trivial: Fix warning: declared with a const-qualified typedef
2023-02-23 13:04:12 -06:00
Richard Hughes
be04e8e034
trivial: Fix warning: pointer parameter 'buf' can be pointer to const
2023-02-23 13:04:11 -06:00
Richard Hughes
65b158a7cc
trivial: Fix warning: repeated branch in conditional chain
2023-02-23 13:04:11 -06:00
Richard Hughes
caa6568262
trivial: Fix warning: do not use 'else' after 'return'
2023-02-23 13:04:11 -06:00
Richard Hughes
953b74a26f
trivial: Fix warning: redundant return statement at the end of a function with a void return type
2023-02-23 13:04:11 -06:00
Richard Hughes
72c8574f04
trivial: Remove an unused source file
2023-02-23 13:04:11 -06:00
Richard Hughes
2f679bf2e2
trivial: Remove an unused self-test file
2023-02-23 13:04:11 -06:00
Richard Hughes
4ea2e43b13
Actually store the SHA384 TPM measurements if found
2023-02-23 13:04:11 -06:00
Richard Hughes
53c88b8949
trivial: Fix a typo that was missed in review
2023-02-23 13:04:11 -06:00
Richard Hughes
b908b1c1df
trivial: Test for the correct thing in the tests
2023-02-23 13:04:11 -06:00
Richard Hughes
a5dd069b43
trivial: Include the correct headers to make clang-tidy happy
2023-02-23 13:04:11 -06:00
Richard Hughes
34bd4d6766
trivial: Remove the unused deprecated header files
2023-02-23 13:04:11 -06:00
Richard Hughes
93307ed27d
trivial: Never show profiling steps when using fwupdtool install
2023-02-23 13:04:11 -06:00
Richard Hughes
c0ababf2cf
trivial: Add some additional docs about CCGX factory mode
2023-02-23 13:04:11 -06:00
Richard Hughes
b59c82e1bd
Add support for emulating and recording devices
...
Based on patches from Frédéric Danis <frederic.danis@collabora.com>
2023-02-23 13:04:11 -06:00
Richard Hughes
8bcb66745a
Update the MOTD after 5s idle
...
If we're doing multiple updates in a composite device then we don't need to
update the MOTD in between each sub-component update. Similarly, if we're
emulating lots of devices.
This speeds up emulating all the devices by two orders of magnitude.
2023-02-23 13:04:11 -06:00
Richard Hughes
2d2d59591a
ccgx: Auto-set the remove-delay now we parse the devx components
...
This is one less thing for vendors to work out.
2023-02-23 13:04:11 -06:00
Mario Limonciello
d0e880ca4c
trivial: thunderbolt: show integrated USB4 host controllers in tree
...
USB4 host controllers that can't be updated come from the CPU.
Show them properly in the tree view.
2023-02-23 13:04:11 -06:00
Mario Limonciello
21d185ef13
trivial: Add relationship for GPIO controller
...
The GPIO controllers AMDI0030 and AMDI0031 come from the SOC.
Show them appropriately in the tree view.
2023-02-23 13:04:11 -06:00
Richard Hughes
d1bf305d79
trivial: Use g_string_replace() from GLib when available
2023-02-23 13:04:11 -06:00
Richard Hughes
e5cb6dc653
Fix SMBIOS struct parsing when there are three NULs in a row
...
We need to be careful detecting the end of a string section when the struct
ends with NUL NUL NUL.
Fixes https://github.com/fwupd/fwupd/issues/5509
2023-02-23 13:04:11 -06:00
Valentin David
c17935acf7
snap: allow fwupdmgr to shutdown
...
When installing a capsule, optional reboot is done by fwupdmgr instead
of fwupd. This means fwupdmgr needs the permission to do that.
2023-02-23 13:04:11 -06:00
Richard Hughes
8aef37fd57
cros-ec: Fix an uninitialized buffer warning from valgrind
2023-02-23 13:04:11 -06:00
Richard Hughes
8e25ec00e2
analogix: Do not check the endpoints before selecting an interface
...
My Analogix USB device has a Billboard interface, with bNumEndpoints=0.
When emulating the interface is NULL, and in runtime the array can *never* be
NULL, so I think this check was added in error.
2023-02-23 13:04:11 -06:00
Richard Hughes
2b60028a97
ti-tps6598x: Fix a small memory leak when flashing new firmware
2023-02-23 13:04:11 -06:00
Richard Hughes
d064cc740e
wacom-usb: Use the device proxy functionality
...
The wacom-usb plugin was created in a simpler time, before we had the concept
of `FuDevice.proxy`. Switch to the shared code to modernize the code, and also
because setting the proxy conveys other semantics that we need to emulate the
device successfully in the future.
2023-02-23 13:04:11 -06:00
Richard Hughes
7a2207fb28
trivial: Remove the now-unused FWUPD_WAC_EMULATE check
2023-02-23 13:04:11 -06:00
Richard Hughes
63a2bd859f
Ensure composite devices all share the same acquiesce delay
...
We go to great pains to set the parent to the MAX of the child delays, but we
don't actually set the children to have the new parent value.
This means if you update the child device without the parent in the transaction
we don't always wait for all the USB devices to come back -- which is what the
acquiesce delay is designed to do.
Fixes an intermittant device test for the Wacom USB tablet.
2023-02-23 13:04:11 -06:00
Richard Hughes
62c743008f
trivial: Ignore device requests when emulated
2023-02-23 13:04:11 -06:00
Richard Hughes
e8e6908246
ccgx: Add support for the CalDigit Element Hub
2023-02-23 13:04:11 -06:00
Richard Hughes
1aac6646f0
ccgx: Detect factory mode and set a non-zero version
...
The Element Hub (and several other docks that use the CCGX5 DMC reference
design) is in "factory mode" out of the box, displaying a version of `0.0.0.0`
Detect factory mode and set a non-zero version -- using the "real" version if
possible by matching the CCG5 devx base firmware firmware.
2023-02-23 13:04:11 -06:00