Commit Graph

6062 Commits

Author SHA1 Message Date
Ricardo Cañuelo
f63afade6f logitech-hidpp: Add some trivial defines for polling intervals 2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
f4926e2d8e logitech-hidpp: Add support for devices supporting the Unified Battery feature 2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
ef95d362dd logitech-hidpp: Fix reading HID++1.0 battery mileage 2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
4534f2d7fc logitech-hidpp: Reduce some debug noise on update 2021-08-31 17:15:15 +01:00
Ricardo Cañuelo
74e126390a logitech-hidpp: Fix a critical error on flash failure 2021-08-31 17:15:15 +01:00
Richard Hughes
bd52573b11 Add support for an 'unreachable' device flag
This is for devices that are still registered with a receiver but are
no longer in range or in a high power state.
2021-08-31 17:08:05 +01:00
Richard Hughes
566f8e27c2 Do not check wait_removed as multiple devices can be WAIT_FOR_REPLUG
This makes devices that come back in bootloader mode with no children
timeout, which is bad UX. We don't even need the feature now that we
can WAIT_FOR_REPLUG on multiple devices now.
2021-08-31 12:47:46 +01:00
Richard Hughes
b5c59e2733 trivial: Make the 'device ID was not found' messages more helpful 2021-08-31 12:47:29 +01:00
Richard Hughes
a9f2d1966a trivial: Fix a translator string Freudian slip 2021-08-30 08:24:43 +01:00
Sanjay Sheth
b6ff1ea40e Add support for devices supporting the Logitech bulk controller protocol 2021-08-29 20:33:16 +01:00
Mario Limonciello
ce6da002aa Add protobuf support to clang-format 2021-08-29 20:33:16 +01:00
Richard Hughes
7020f49aa9 trivial: Fix a GObjectIntrospection warning by using the correct prefix 2021-08-28 06:50:50 -05:00
Richard Hughes
d8af914072 trivial: Remove some unused variables 2021-08-28 10:17:56 +01:00
Crag Wang
ab307a879f dell-dock: cleanup needs to handle activation between devices in dock 2021-08-27 13:04:48 +08:00
Mario Limonciello
db72e9f52a trivial: mark some strings as translatable (Fixes: #3654) 2021-08-25 14:28:43 -05:00
Crag Wang
651a542cae dell-dock: add device GUID earlier even setup yet done
This commit resolves a warning message at runtime:
- no GUIDs for device ...

fu_device_add_child emits a child-added signal afterwards the engine
try to add given device and verify whether GUIDs is set.
2021-08-25 08:20:44 -05:00
Mario Limonciello
f6a8c740e0 trivial: ignore commits for tree wide changes 2021-08-24 11:18:40 -05:00
Mario Limonciello
55de39c077 trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
Mario Limonciello
73fe71a65e trivial: redfish: fix a wrong return value 2021-08-24 11:18:40 -05:00
Mario Limonciello
d3983674f4 trivial: don't use same variable definition as config.h in code
If config.h is included by a file then which one is used may end up
be confusing.  Be explicit to use the values that are declared by
libraries.
2021-08-24 11:18:40 -05:00
Mario Limonciello
96b693fb50 trivial: thunderbolt: fix include order for future changes 2021-08-24 11:18:40 -05:00
Crag Wang
756b18391b dell-dock: handle activation until both ec and usb4 devices are probed 2021-08-24 11:45:45 +08:00
Michal Vasilek
1a363c7e44 trivial: make gi-docgen a host dependency on cross 2021-08-23 12:56:20 -05:00
Richard Hughes
c1ff02f055 trivial: Make the quirk style more consistent 2021-08-23 18:10:12 +01:00
Richard Hughes
6a8f285ee2 Check the quirk format as part of precommit 2021-08-23 18:10:12 +01:00
Jing-Jie Zhou
8b477ed5e8 modified. DeviceInstanceId is deprecated! 2021-08-23 06:50:28 -05:00
Jierger Zhou
3fbdbd64aa dfu: add quirks for AVer ATLAS CAM/CAM520 Pro2 2021-08-23 06:50:28 -05:00
Mario Limonciello
3b4b05561a trivial: fix a compilation dependency error (Fixes: #3657)
Reproducible by manually calling failing build targets first
```
ninja -C build plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o
ninja: Entering directory `build'
[1/1] Compiling C object plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o
FAILED: plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o
cc -Iplugins/tpm-eventlog/fwupdtpmevlog.p -Iplugins/tpm-eventlog -I../plugins/tpm-eventlog -I. -I.. -Ilibfwupd -I../libfwupd -Ilibfwupdplugin -I../libfwupdplugin -I/usr/include/libxmlb-1 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gio-unix-2.0 -I/usr/include/gudev-1.0 -I/usr/include/json-glib-1.0 -I/usr/include/gusb-1 -I/usr/include/libusb-1.0 -I/usr/include/tss2 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c99 -g -Waggregate-return -Wunused -Warray-bounds -Wcast-align -Wclobbered -Wdeclaration-after-statement -Wdiscarded-qualifiers -Wduplicated-branches -Wduplicated-cond -Wempty-body -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-signedness -Wignored-qualifiers -Wimplicit-function-declaration -Winit-self -Wlogical-op -Wmaybe-uninitialized -Wmissing-declarations -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wmissing-parameter-type -Wmissing-prototypes -Wnested-externs -Wno-cast-function-type -Wno-address-of-packed-member -Wno-unknown-pragmas -Wno-missing-field-initializers -Wno-strict-aliasing -Wno-suggest-attribute=format -Wno-unused-parameter -Wold-style-definition -Woverride-init -Wpointer-arith -Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wstrict-aliasing -Wstrict-prototypes -Wswitch-default -Wtype-limits -Wundef -Wuninitialized -Wunused-but-set-variable -Wunused-variable -Wvla -Wwrite-strings -fstack-protector-strong -DFWUPD_COMPILATION -D_DEFAULT_SOURCE -DFWUPD_DISABLE_DEPRECATED -D_BSD_SOURCE -D__BSD_VISIBLE -D_XOPEN_SOURCE=700 -D_GNU_SOURCE -pthread -MD -MQ plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o -MF plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o.d -o plugins/tpm-eventlog/fwupdtpmevlog.p/fu-tpm-eventlog-common.c.o -c ../plugins/tpm-eventlog/fu-tpm-eventlog-common.c
In file included from ../libfwupdplugin/fwupdplugin.h:33,
                 from ../plugins/tpm-eventlog/fu-tpm-eventlog-common.h:9,
                 from ../plugins/tpm-eventlog/fu-tpm-eventlog-common.c:9:
../libfwupdplugin/fu-plugin-vfuncs.h:17:10: fatal error: fu-hash.h: No such file or directory
   17 | #include "fu-hash.h"
      |          ^~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

```
2021-08-22 16:09:18 -05:00
Apollo Ling
98f78f4b15 plugin/synaptics-mst: add support for cayenne/spyder 2021-08-19 22:49:38 -05:00
Mario Limonciello
7ae233b7cf Forcefully set checksums found in cabinet files to lowercase
Archives uploaded to LVFS will have checksums written by hexdigest
and be set to lowercase, but hand generated archives this may not
be true.

For maximum compatibility with the most fwupd versions they should
be written in lowercase, but in case they aren't, convert to lowercase.

Reference https://github.com/fwupd/firmware-lenovo-thinkpad/issues/145
2021-08-18 14:18:28 -05:00
Norbert Kamiński
3fe782cddd build_freebsd_package.sh: Build package with generated pkg-plist
Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
2021-08-18 08:39:11 -05:00
Norbert Kamiński
c1f06b6b82 freebsd-ci: Change FreeBSD artifact extension
Signed-off-by: Norbert Kamiński <norbert.kaminski@3mdeb.com>
2021-08-18 08:39:11 -05:00
Norbert Kamiński
ea12ce69b1 Revert "trivial: Disable the FreeBSD CI action as it's been failing for a long time"
This reverts commit 51efc1c772.
2021-08-18 08:39:11 -05:00
Mario Limonciello
f8d3279de5 trivial: increase shellcheck level to warning 2021-08-18 07:58:17 -05:00
Mario Limonciello
684bc03813 trivial: fix various shellcheck warnings 2021-08-18 07:58:17 -05:00
Mario Limonciello
f137d8aaf3 trivial: remove unused variable for post install script 2021-08-18 07:58:17 -05:00
Mario Limonciello
682f962006 trivial: move clone firmware shell code into common script 2021-08-18 07:58:17 -05:00
Mario Limonciello
cfd584f26b trivial: build-windows: fix some shellcheck warnings 2021-08-18 07:58:17 -05:00
Mario Limonciello
4f36ec32e8 trivial: freebsd: remove unused variable
found by codacity
2021-08-18 07:58:17 -05:00
Mario Limonciello
cedc772b91 trivial: redfish: remove duplicate dictionary key
found by codacity
2021-08-18 07:58:17 -05:00
Mario Limonciello
393777b9fb trivial: redfish: drop unused import and variables
found by codacity
2021-08-18 07:58:17 -05:00
Mario Limonciello
a1b746d276 trivial: don't use built-in types
found by codacity
2021-08-18 07:58:17 -05:00
Mario Limonciello
747aeb5f8a trivial: uefi-capsule: remove an always true condition
found by codacity
2021-08-18 07:58:17 -05:00
Jerry Zhang
dfc0254683 dfu: Introduct a quirk to allow zero polltimeout in dfuDNLOAD.
Some Poly usb devices report zero in the bwPollTimeout field of
GET_STATUS request. The host can issue the next DFU_DNLOAD
request immediately without any delay.

Introduced a private flag to skip the default DNLOAD timeout
(5ms) fix. It could remarkably reduce the firmware downloading
time taking into account the large firmware (more than 500MB).
2021-08-16 10:01:27 -05:00
Emily Miller
89609c8c1b vli: VL819 into quirk 2021-08-13 10:48:38 -05:00
Mario Limonciello
1c25453aa8 trivial: contrib/setup: update markdown if it's too old
gi-docgen requires 3.3.3 or later, but some of the distro packages
are too old.  Upgrade them to make the default

```
meson build
```

work out of the box
2021-08-12 16:38:14 -05:00
Twain Byrnes
84b06ed258 migrate powerd plugin from method call to signal
Allow fwupd to use the BatteryStatePoll signal instead
of the GetBatteryState method call so that fwupd does
not need to run a timer itself and is automatically updated
on power connect/disconnect.

Change-Id: I81aad6a5933fa267473a83d1b97f4638235b155a
2021-08-12 17:01:13 +01:00
Emily Miller
5d337e72a6 vli: fix VL819, add placeholder VL821-VL822 2021-08-11 10:11:14 -05:00
cragw
f5fb53a371
trivial: if usb4 device device presents then activate it exclusively (#3595)
* dell-dock: open usb4 device in the activate call, and leave early

* trivial: read history earlier, at least before plugin register

* dell-dock: activate usb4 device exclusively if it needs activation
2021-08-11 22:29:31 +08:00
Richard Hughes
6f8ab5e70c Restart the daemon if any of the the plugin config files are modified
Fixes https://github.com/fwupd/fwupd/issues/3625
2021-08-11 14:27:47 +01:00