Richard Hughes
0c91cb0a94
trivial: Don't output the error domain twice
2017-01-17 11:17:29 +00:00
Richard Hughes
ae040f77b8
trivial: Fix some indenting in synapticsmst
2017-01-17 11:17:29 +00:00
Richard Hughes
94ce14f317
trivial: Use rc for return codes
...
The variable ret is normally reserved for boolean values.
2017-01-17 08:58:40 +00:00
Richard Hughes
1967c6c9ac
trivial: Fix up some missing return value assignments
...
Spotted by coverity.
2017-01-17 08:54:34 +00:00
Richard Hughes
db0a3cb37f
trivial: Fix up some indent issues spotted by coverity
2017-01-17 08:54:03 +00:00
Richard Hughes
999f66ab13
trivial: Actually set the Unifying device name
2017-01-16 22:00:40 +00:00
Mario Limonciello
f53e4a2d4b
trivial: synapticsmst: only enable plugin if kernel support is present
2017-01-16 15:37:11 -06:00
Mario Limonciello
8eaf6dbcd6
trivial: synapticsmst: don't proceed if device open fails
2017-01-16 15:14:47 -06:00
Pei-Chen Huang
abac1640a5
synapticsmst: Add cascade support
2017-01-16 11:23:43 -06:00
Mario Limonciello
24afb470f2
Introduce plugin for Synaptics MST hubs
2017-01-16 11:23:43 -06:00
Richard Hughes
e3c8832dd0
trivial: Fix a critical warning when removing thunderbolt devices in safe mode
2017-01-11 21:51:21 +00:00
Mario Limonciello
038d386a82
dell: introduce a standalone (noinst) tool to force mode flashes
2017-01-11 15:35:55 -06:00
Richard Hughes
2520b7d1ed
trivial: Add some debugging in the thunderbolt plugin
2017-01-11 17:24:20 +00:00
Richard Hughes
26adb3c819
trivial: Fix a crash when flashing a thunderbolt controller in safe mode
2017-01-11 17:21:10 +00:00
Richard Hughes
ccd78a9703
trivial: Add some sanity guards in plugin-calling functions
2017-01-11 16:57:41 +00:00
Richard Hughes
fcca6f67b2
Include all debug messages when run with --verbose
2017-01-11 16:50:17 +00:00
Richard Hughes
44dee88ad6
trivial: Protect against multiple uses of fu_plugin_alloc_data() in a plugin
2017-01-11 08:31:10 +00:00
Richard Hughes
b21e324c23
trivial: Always call update_cleanup() even when the update action fails
...
In this case we can't return any failure to cleanup and just log the warning
on the console.
2017-01-11 08:29:17 +00:00
Mario Limonciello
0d92e865aa
trivial: thunderbolt: don't allocate new plugin data on rescan
2017-01-10 19:55:12 -06:00
Mario Limonciello
9df75f7206
trivial: dell: move coldplug delay setting to startup()
2017-01-10 17:13:08 -06:00
Richard Hughes
cd35e3c242
trivial: Fix a compile warning when doing a unifying control transfer
2017-01-10 22:10:50 +00:00
Richard Hughes
04ec912b19
trivial: Fix some colorhug function name prefixes
2017-01-10 22:10:50 +00:00
Richard Hughes
b5574b463e
trivial: Fix example spec file
2017-01-10 22:10:50 +00:00
Richard Hughes
932eb397d2
trivial: Fix 'make distcheck'
2017-01-10 22:10:50 +00:00
Mario Limonciello
592ab30b3c
trivial: dell: update_prepare/update_cleanup on only certain plugins
2017-01-10 15:39:25 -06:00
Richard Hughes
23b9c9d78d
trivial: Use the per-plugin cache for the runtime device
...
There is no point having two hash tables doing the same thing...
2017-01-10 16:09:38 +00:00
Richard Hughes
57d18229a1
trivial: Add some more documentation for functions used by plugins
2017-01-10 16:09:32 +00:00
Richard Hughes
4190178f94
trivial: Remove the unused fu_plugin_set_name()
2017-01-10 16:09:32 +00:00
Richard Hughes
0de35b058d
unifying: Subclass FuDevice like the altos plugin
2017-01-10 16:09:32 +00:00
Richard Hughes
a4e44ce39b
altos: Set the flags in the init_real so they work for the cmdline tool
2017-01-10 16:09:32 +00:00
Richard Hughes
b721d4326f
ebitdo: Subclass FuDevice like the altos plugin
...
This makes things much simpler.
2017-01-10 14:02:16 +00:00
Richard Hughes
dc390e3a68
trivial: Set up two flags not set by cfmakeraw()
2017-01-10 12:49:52 +00:00
Richard Hughes
7a44ff9748
altos: Add error checking when using termios
2017-01-10 12:48:08 +00:00
Richard Hughes
b082903c5f
Add fu_plugin_set_coldplug_delay() to allow hardware to initialize if required
2017-01-10 09:27:08 +00:00
Richard Hughes
10ec93b187
Revert "thunderbolt: add some guards around empty arrays"
...
This reverts commit 5f1c991c40
.
2017-01-09 21:34:43 +00:00
Richard Hughes
efa55b83a7
dell: Fix possible linker problem
...
The linker does not know which public symbol to call if a plugin calls it's own
symbol. Without this change one plugin could call into another plugin with the
wrong GsPluginData set.
2017-01-09 21:32:44 +00:00
Richard Hughes
2b464378ea
trivial: Add flags to fu_device_altos_write_firmware()
2017-01-09 21:25:50 +00:00
Mario Limonciello
2bcc151619
dell: Adjust the coldplug preparation and cleanup sequence
...
Unfortunately no indication is made that a GPIO change is
done so some time needs to be left to make sure this happened.
2017-01-09 13:31:35 -06:00
Mario Limonciello
5f1c991c40
thunderbolt: add some guards around empty arrays
...
Depending upon the call order and devices coming or going these
may or may not have anything actually contained which will cause
segfaults otherwise.
2017-01-09 11:11:19 -06:00
Richard Hughes
05133fefb7
Add support for flashing the ChaosKey
2017-01-09 12:21:35 +00:00
Richard Hughes
4ff3169556
thunderbolt: Detecting new devices and add an actual device to the daemon
...
Also, add an untested update implementation.
Based on a patch by Eric Rubin-smith <ericx.rubin-smith@intel.com>, many thanks.
2017-01-08 16:14:35 +00:00
Richard Hughes
f360583f3c
trivial: Reschedule a recoldplug after a small delay
...
This also ensures that we only re-coldplug once if multiple plugins request
the action in the same 1500ms window.
2017-01-08 10:51:57 +00:00
Richard Hughes
f028ba25ac
trivial: Do not allow recoldplugging whilst in coldplug itself
2017-01-08 10:45:12 +00:00
Richard Hughes
1d511fafa6
trivial: Fix a uninitialized value in the dell plugin
...
Spotted using clang.
2017-01-07 22:14:28 +00:00
Richard Hughes
c7ea2a2369
trivial: Fix up two compile warnings
2017-01-07 22:10:14 +00:00
Richard Hughes
66a24da646
trivial: Actually allow compiling with libelf
2017-01-07 22:07:13 +00:00
Richard Hughes
362d6d7d7d
Allow plugins to request that all plugins re-coldplug
...
This allows a plugin to signal the daemon that something has happened and that
all plugins should wake up connected devices, re-add them all and then put the
devices back to powersave mode. Any duplicate devices will be ignored.
2017-01-07 21:42:17 +00:00
Richard Hughes
46487c944a
Add the ability to run a prepare->exec->cleanup on coldplug
...
The idea here is that plugins can 'wake up' hardware in prepare, and put it
back into powersaving mode when doing cleanup.
2017-01-07 21:26:36 +00:00
Richard Hughes
57d8bf6590
trivial: Fix a compile warning in the dell plugin
2017-01-07 21:15:46 +00:00
Richard Hughes
ba79b07b4f
libdfu: Don't read data from some DfuSe targets
...
The option bytes section makes no sense to include in the flashed image.
2017-01-07 21:13:51 +00:00