Richard Hughes
63b173046d
trivial: Rename the 'plugin-hints' functionality to 'custom-flags'
...
They will be used as actual flags in the future.
2018-06-28 12:07:13 +01:00
Richard Hughes
04d6965a14
ebitdo: Do not use bootloader commands after a successful flash and reboot
...
We need to remove the flag if the quirk is not present.
Fixes the cosmetic-but-scary-looking 'failed to send to device on ep 0x01: USB
error on device 2dc8:9001 : Input/output error'.
Fixes the other half of https://github.com/hughsie/fwupd/issues/565
2018-06-26 14:12:02 +01:00
Richard Hughes
d99190f626
wacomhid: Use the parent device name for sub-modules
2018-06-25 17:12:44 +01:00
Mario Limonciello
2d9bcf463f
trivial: uefi: update the comment for _efi_get_variable_exists
...
The commit was merged in 0b3d29d2d8
which landed in efivar 35.
2018-06-24 06:53:24 +01:00
Richard Hughes
e48351e260
Set the alternate device ID, not the object itself
...
If the daemon either de-duplicates or replaces the object passed emitted from
device-added then the object set as the alternate may not be the same instance
as the daemon version. This causes weird things to happen.
To make this less fragile, specify the *ID* of the object that should be the
alternate device, which allows the daemon to do clever things, and then assign
the object from the ID as the last step.
Although fixing no bug, this makes implementing future functionality easier.
2018-06-22 13:28:27 +01:00
Richard Hughes
1107fa4c9a
dell: Do not rely of the order the devices are added in the self tests
...
Get the TPM v2.0 and v1.2 devices explictly rather than assuming the non-alt
device is always added first. This has the side effect of making the tests
easier to read and means we can check the dock components more carefully.
2018-06-22 13:28:27 +01:00
Richard Hughes
8a6fdf8e18
dell: Don't crash when the alternate device has not been set
...
I don't think this is possible, but it's the right thing to do...
2018-06-22 13:28:27 +01:00
Richard Hughes
80b2c237c2
dell: Don't show '(null)' as the product name in the self tests
2018-06-22 13:28:27 +01:00
Richard Hughes
aa1ed47f06
wacomhid: Set the device status when erasing and writing firmware
2018-06-15 13:42:52 +01:00
Richard Hughes
0a7e590e22
wacomhid: Support more tablets
...
These are untested, but use the same HID protocol for flashing.
2018-06-11 09:04:39 +01:00
Richard Hughes
da08b5a048
colorhug: Remove the bootloader flag when re-booting in runtime mode
...
This needs to be fixed properly, and will be addressed in a future PR.
2018-06-07 12:10:22 +01:00
Mario Limonciello
dfb87c51c9
trivial: synapticsmst: drop efivar dep
2018-06-04 20:00:07 -05:00
Richard Hughes
872ec1b68f
Add an experimental plugin to update some new Wacom tablets
2018-06-04 11:29:29 +01:00
Richard Hughes
0b522aef96
colorhug: Do not require libcolorhug to build
...
Requiring colord to be built before fwupd makes it hard to build packages.
The HID-based flashing protocol is stable and documented, so there's no need
to use an external library for this now.
2018-06-02 21:43:20 +01:00
Richard Hughes
7a874176ff
trivial: Add a FuDevice flag to show the device is in bootloader mode
...
This is useful to present to the user using the command line, and means each
FuDevice-deriving object does not have to handle this.
2018-05-31 18:50:19 +01:00
Richard Hughes
4be17d1364
Add support for relocating various runtime paths
...
This allows a snap package to be easily built.
With much help from Mario Limonciello <mario.limonciello@dell.com>, many thanks.
2018-05-31 16:25:22 +01:00
Mario Limonciello
2fd28a374d
trivial: uefi: Don't return NULL matching devices
...
Fixes: 988e73c414
2018-05-30 19:57:13 +01:00
Richard Hughes
c7c53ff03d
trivial: Don't build the thunderbolt plugins based on udev presence
...
GUdev has to exist as a runtime dep, and this check for udev.pc will do nothing
helpful.
2018-05-30 14:12:12 +01:00
Richard Hughes
d8fdcd63b8
trivial: Move the HID defines to a shared location
2018-05-29 20:15:47 +01:00
Richard Hughes
fe221dc13d
trivial: Fix up some NULL/FALSE confusion
2018-05-29 09:33:44 +01:00
Richard Hughes
caf379dc00
trivial: Convert FuAltosDevice to use G_DECLARE_FINAL_TYPE
2018-05-29 09:29:15 +01:00
Richard Hughes
9d5aa59ea6
trivial: Convert FuColorHugDevice to use G_DECLARE_FINAL_TYPE
2018-05-29 09:29:03 +01:00
Richard Hughes
4152990537
trivial: Convert FuEbitdoDevice to use G_DECLARE_FINAL_TYPE
2018-05-29 09:20:21 +01:00
Richard Hughes
699e9aa134
trivial: Convert FuRom to use G_DECLARE_FINAL_TYPE
2018-05-29 09:15:55 +01:00
Mario Limonciello
51308e648a
Adjust all licensing to LGPL 2.1+ ( Closes : #526 )
2018-05-29 09:03:13 +01:00
Richard Hughes
15aa91bbd1
dfu: Add dfu_element_get_contents_chunk()
2018-05-25 12:10:28 +01:00
Richard Hughes
c5454860d4
dfu: Add dfu_utils_bytes_pad() trivial helper
2018-05-25 12:10:24 +01:00
Richard Hughes
7013c8c963
dfu: Make the SREC parser abort on a duplicate S0 header
2018-05-25 11:40:33 +01:00
Richard Hughes
38d064a7f3
dfu: Fix the SREC parser to correctly parse 32 bit address values
2018-05-25 11:40:12 +01:00
Richard Hughes
849d841ca9
dfu: Add a helper function for loading a DfuImage from a SREC file
...
Also, add the ability to start from a known device offset.
2018-05-23 21:06:24 +01:00
Richard Hughes
ba4ec1a25f
trivial: Add helper function for chunking a GBytes
2018-05-23 20:47:33 +01:00
Richard Hughes
b04a8778e9
trivial: Add helper function for parsing a uint4 buffer
2018-05-23 20:47:26 +01:00
Richard Hughes
988e73c414
uefi: Search all available GUIDs when matching hardware
...
Using just the default GUID is fragile and might break if the GUIDs get added
in the 'wrong' order or if the GUID list is sorted.
Fixes https://github.com/hughsie/fwupd/issues/518
2018-05-19 23:07:40 +01:00
Mario Limonciello
dff281311c
uefi: Set the alternate GUID for parenting later
...
Several places in the UEFI plugin operate on the default GUID rather
than iterating a list of GUIDs. This is normally fine since UEFI
GUIDs are tied to the ESRT and normally one FuDevice shouldn't
have multiple GUIDs.
The alternate GUID was added to set parents accordingly but this
caused no CAB files to be able to install.
Fixes: cc664d7d
(amt: Put the AMT device as a child under the system UEFI firmware)
2018-05-18 13:55:42 -05:00
Richard Hughes
e183ce2803
trivial: Remove the Unifying noinst tool
2018-05-18 10:26:51 +01:00
Richard Hughes
8658cd1ed2
trivial: Remove the AltOS noinst tool
2018-05-18 10:25:49 +01:00
Richard Hughes
83528ccded
trivial: Remove the 8Bitdo noinst tool
2018-05-18 10:25:28 +01:00
Richard Hughes
17cd8bf9c3
trivial: Remove the CSR noinst tool
2018-05-18 10:25:04 +01:00
Richard Hughes
cf22df177f
trivial: Remove the synapticsmst noinst tool
2018-05-18 10:24:38 +01:00
Richard Hughes
3e3ac27216
trivial: Add attach() and detach() vfuncs to FuDevice
2018-05-18 10:08:10 +01:00
Richard Hughes
0b8c1e7e92
ebitdo: Move the bootloader fallback instructions
2018-05-14 17:09:23 +01:00
Richard Hughes
c48d0cfa0c
trivial: Add a read_firmware() vfunc to FuDevice
2018-05-14 17:07:20 +01:00
Richard Hughes
0a0483b2ce
trivial: Add a write_firmware() vfunc to FuDevice
2018-05-14 17:07:20 +01:00
Mario Limonciello
86b3bcf8c9
ebitdo: Stop matching Nintendo Switch Pro VID/PID
...
Unfortuantely similar to ead5bf392
this is causing problems with
real Nintendo Switch controllers.
2018-05-07 09:22:12 -05:00
Mario Limonciello
1a60231658
trivial: synapticsmst: Recognize boardid 0x103
...
This board_id will be used in a new device in the future.
The enum and description will be updated later when more details
are ready.
2018-05-03 14:07:42 -05:00
Richard Hughes
185f4a4791
dfu: Allow parsing SREC files without the optional S5 record
2018-05-03 19:58:31 +01:00
Mario Limonciello
e9046e7207
synapticsmst: Set TB16/WD15 appropriately in topology
2018-05-03 08:07:04 +01:00
Mario Limonciello
542b97d19f
dell: Set parents for Dell WD15/TB16 docks
2018-05-03 08:07:04 +01:00
Mario Limonciello
4a981d599c
dell: Set TPM alternate mode device under regular mode
2018-05-03 08:07:04 +01:00
Richard Hughes
2c86dc0e9a
unifying: Set known parent for unifying peripherals
2018-05-03 08:07:04 +01:00