Richard Hughes
a3740518b2
vli: Port to fu_device_retry()
2020-03-28 12:46:03 +00:00
Richard Hughes
c3afed36d5
Allow waiting for the parent device when replugging
...
If a child device resets a parent device then we want to wait for the root
device, not the child.
2020-03-10 17:09:13 +00:00
Richard Hughes
4fb8693598
vli: Fix an error when detaching MSP430
...
The parent has to be opened and we need a longer delay before reading.
2020-03-10 15:12:09 +00:00
Richard Hughes
ff93d91f5a
vli: Fix a critical warning when getting the USB speed
2020-03-10 15:09:43 +00:00
Richard Hughes
c6c3d6c4c8
vli: Fix the version calculation for MSP430
...
Nobody from USI reviewed this, so it was wrong.
2020-03-10 15:07:17 +00:00
Richard Hughes
6dd54fa9c4
vli: Set the MSP430 version format to pair
...
Apparently the Windows tool ignores the first byte, so we should too.
2020-03-03 14:19:42 +00:00
Richard Hughes
f50ff2c27e
Decouple the version format from the version itself
...
If we say that the version format should be the same for the `version_lowest`
and the `version_bootloader` then it does not always make sense to set it at
the same time.
Moving the `version_format` to a standalone first-class property also means it
can be typically be set in the custom device `_init()` function, which means we
don't need to worry about *changing* ther version format as set by the USB and
UDev superclass helpers.
2020-02-25 14:00:09 +00:00
Richard Hughes
ef168b289e
vli: Fix a potential buffer-overflow when parsing firmware
...
Spotted by Coverity.
2020-02-07 15:16:39 +00:00
Richard Hughes
fbffb16378
vli: Use a different protocol ID for i2c devices
...
These devices report a triplet version format, not a quad.
2020-01-02 13:24:13 +00:00
Richard Hughes
714c4ce9d3
vli: Use a more standard GUID for the child i²c and shared SPI devices
...
We sometiems need to restrict the firwmare to the parent VID:PID too.
2020-01-02 13:24:13 +00:00
Richard Hughes
e968c0ec07
vli: Have one 'DeviceKind' for all objects
...
We'll soon have PD devices that are not children of the FuVliUsbhubDevice and
so it makes sense to flattern out the namespace. Also, less code.
2020-01-02 13:24:13 +00:00
Richard Hughes
f169186700
vli: Rename the vli_usbhub
plugin to vli
...
In the future we'll be doing PD updates without any USB hub at all.
2020-01-02 13:24:13 +00:00