Zander
e56b036e33
Remove www. from links to fwupd.org
2017-12-17 10:39:34 +00:00
Richard Hughes
fe842231d2
unifying: Don't duplicate a device flag from FuDevice
2017-12-14 18:12:13 +00:00
Richard Hughes
d8a175ee90
unifying: Use the daemon replug timeouts
2017-12-14 18:09:04 +00:00
Richard Hughes
650dadebe6
Choose the correct component from provides matches using requirements
...
In the case of multiple <component> sections with different AppStream IDs, but
with the same GUID <provides>, filter using the requirements rather than just
choosing the first one.
This allows the update of Logitech devices with secure bootloaders. Many thanks
to Ogier Bouvier for identifying the problem.
2017-12-14 15:50:19 +00:00
Mario Limonciello
736be7440f
dell: block owned TPM updates ( #339 )
...
Also make it clearer what the logic is checking.
2017-12-13 12:13:33 -06:00
Igor Gnatenko
0ffc2448c0
ci: mesonintrospect -> meson introspect
...
Plan is to remove "old" name at some point (1.0?).
2017-12-13 11:08:45 -06:00
Richard Hughes
87067cc17d
trivial: Add another AIAIAI product to the supported list
2017-12-11 16:53:43 +00:00
Richard Hughes
963cb45793
ebitdo: Use quirks rather than hardcoding a list of VIDs and PIDs
...
This means we can trivially support new devices in the future without compiling
any new code. This makes it easier to add support for new hardware for LTS
distros like RHEL.
2017-12-11 16:49:28 +00:00
Richard Hughes
fbcebe096b
Connect the progress and status callbacks on the new FuDevice on replug
...
This ensures we get progress events when replugging a device. Also, remove the
callbacks on the 'old' device to avoid causing multiple events on a 2nd-replug.
2017-12-11 16:48:56 +00:00
Richard Hughes
9934fb514c
trivial: Apply the quirks again if the backing GUsbDevice changes
2017-12-11 16:48:42 +00:00
Richard Hughes
853ce90d79
trivial: Actually set the plugin hints from the device GType
...
This is a typo from the last commit
2017-12-11 12:10:49 +00:00
Richard Hughes
d9e6cca414
csr: Add a new plugin to add support for CSR "Driverless DFU"
...
CSR is short for Cambridge Silicon Radio, which is a the OEM that makes most
of the bluetooth audio chips in vendor hardware. The hardware vendor can enable
or disable features on the CSR microcontroller depending on licensing options.
The hardware vendor can also use a custom USB descriptor, or just set a custom
PID. In the latter case we need to set the vendor and model to reality using
quirks.
This commit allows the user to update the firmware in the AIAIAI H05 wireless
headphones.
2017-12-11 10:47:18 +00:00
Richard Hughes
306c15b3a0
Add quirks based on the device GType
...
This allows us to have one per-plugin device quirk without having to call
fu_quirks_lookup_by_usb_device() in each plugin.
2017-12-11 10:47:18 +00:00
Richard Hughes
4cea617967
trivial: Add a quirk for setting the USB device version
2017-12-11 10:47:18 +00:00
Richard Hughes
5060246526
trivial: Move the USB quirks from FuPlugin to FuUsbDevice
...
Also rename some general USB quirks that are not specific to any one plugin.
2017-12-11 10:47:18 +00:00
Richard Hughes
a29711c4a1
Move the FuQuirks reference down from DfuDevice to FuDevice
2017-12-11 10:47:18 +00:00
Richard Hughes
7de50dbe92
trivial: Only reuse the added device if it has recently been removed
2017-12-11 09:44:36 +00:00
Richard Hughes
66268d0b31
unifying: Fix the string output format to match FuDevice
2017-12-10 14:50:58 +00:00
Richard Hughes
9b7bd190ed
trivial: Don't show (null) in the debug logs
2017-12-10 14:50:54 +00:00
Richard Hughes
ae252cd83c
trivial: Add some common functionality from reading and writing to a buffer
2017-12-08 20:07:09 +00:00
Richard Hughes
725c19fa88
Add a quirk for setting the USB device vendor
2017-12-08 19:36:09 +00:00
Richard Hughes
168b9faa80
Make LuDevice derive from FuDevice
...
This removes a lot of duplicated code.
2017-12-08 09:36:57 +00:00
Richard Hughes
024cc230ed
Add fu_device_set_progress_full()
...
This allows the plugin to use the raw byte values as a progress counter without
first converting to a percentage.
2017-12-08 09:36:57 +00:00
Richard Hughes
fa34bcffa3
trivial: Add a to_string() vfunc for any objects subclassing FuDevice
2017-12-08 09:36:57 +00:00
Richard Hughes
55f8f236a9
trivial: Allow setting the platform-id from the object constructor
2017-12-08 09:36:57 +00:00
Richard Hughes
99f33c7414
Move some common code down into LuDeviceBootloader
...
This is common API shared by the nordic and texas bootloaders.
2017-12-05 16:11:50 +00:00
Richard Hughes
7be4f138f3
trivial: Remove an unused Unifying vfunc
2017-12-05 14:36:48 +00:00
Richard Hughes
e755d6bb05
Add a more general quirk for adding GUIDs to devices
...
This replaces fwupd-dfu-alternate-vidpid which was only useful in the DFU plugin
and somewhat poorly defined.
2017-12-04 17:00:22 +00:00
Richard Hughes
524343ac63
trivial: Remove DfuMode
...
We can get all this information just from looking at the device state.
2017-12-04 17:00:22 +00:00
Richard Hughes
23135eb1c9
trivial: Remove the now-unused fu_plugin_set_status()
2017-12-04 17:00:22 +00:00
Richard Hughes
a2fff1f44e
dfu: Remove DfuContext
...
Use the power of FuUsbDevice in DfuDevice to remove a lot of complicated code.
2017-12-04 17:00:22 +00:00
Richard Hughes
831bea1024
trivial: Manually call the initial DFU refresh to simplify the DfuDevice code
2017-12-04 17:00:22 +00:00
Richard Hughes
92ced1cfbf
trivial: Move the detach and attach to the DFU client tool
...
This isn't used by the daemon and makes the DfuDevice client simpler.
2017-12-04 17:00:22 +00:00
Richard Hughes
01d152e2ef
trivial: Make DfuDevice derive from GUsbDevice
2017-12-04 17:00:22 +00:00
Richard Hughes
1a16cc5e41
trivial: Remove the use of GCancellable in the dfu plugin
...
We're not using this, and we can simplify the code considerably now that the
library is not installed for external users.
2017-12-04 17:00:22 +00:00
Richard Hughes
ec2df91c15
Support AppStream metadata with relative <location> URLs
...
If a remote like LVFS outputs <location>foo.cab</location> without a prepended
hostname and path then we should use the metadata URI hostname and path instead.
This allows us to trivially mirror a firmware repository, although clients using
older versions of libfwupd will not work without this patch. We should encourage
people to use `FirmwareBaseURI` for a long time yet.
2017-12-04 15:46:54 +00:00
Richard Hughes
20323d63ec
Always use the descriptor-provided version and GUID
...
If a device has gone to the trouble of adding the extra interface data then we
should prefer it over the auto-generated values.
2017-12-01 10:49:39 +00:00
Mario Limonciello
eb737f15f5
fix CI builds with -Werror
...
Switching to build in -werror in 4016c839a8
was not working properly. Adjust the CI builds to use --werror instead.
Also while doing this, enable -werror in clang builds.
2017-11-30 16:42:26 -06:00
Mario Limonciello
ba46ee5d61
meson.build: Add -Wincompatible-pointer-types-discards-qualifiers warnings
2017-11-30 16:42:26 -06:00
Richard Hughes
4a833f2dd2
trivial: Create the right kind of device in the steelseries plugin
2017-11-30 21:26:39 +00:00
Richard Hughes
460f0b123c
trivial: Allow calling ->probe if the GUsbDevice changes
2017-11-30 20:56:33 +00:00
Richard Hughes
4a036018f7
Set the progress and state on the FuDevice, not the FuPlugin
...
This makes more sense; we're updating the device, not the plugin itself.
This also means we don't need to funnel everything through callbacks like
GFileProgressCallback and we can also update the state without adding an
explicit callback to each derived device type.
2017-11-30 20:51:52 +00:00
Richard Hughes
e3bc2bcf88
steelseries: Use the new ->probe vfunc
...
Also, fix a silly typo found using Coverity.
2017-11-30 16:50:54 +00:00
Richard Hughes
909d556c03
Get the serial number from USB devices
...
This is currently unused.
2017-11-30 14:16:34 +00:00
Richard Hughes
c7ad7fb746
trivial: Add fu_usb_device_is_open() for future use
2017-11-30 14:16:34 +00:00
Richard Hughes
bde01d5240
nitrokey: Use the new ->probe vfunc
2017-11-30 14:16:34 +00:00
Richard Hughes
9c1cc979ff
ebitdo: Use the new ->probe vfunc
2017-11-30 14:16:34 +00:00
Richard Hughes
af5743101f
colorhug: Use the new ->probe vfunc
2017-11-30 14:16:34 +00:00
Richard Hughes
c3476d56de
Add a method to probe a FuUsbDevice before it is opened
...
This allows us to further clean up device creation.
2017-11-30 14:16:34 +00:00
Richard Hughes
450f952763
trivial: Do not emit a warning when setting a FuUsbDevice:dev to NULL
2017-11-30 14:16:34 +00:00