Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix BulkTransfer out-of-order replyHEADmain | Frédéric Danis | 2023-04-27 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | | The reply to an out-of-order outgoing BulkTransfer may be also out-of-order Currently we can get: found in-order BulkTransfer:Endpoint=0x01,Data=…,Length=0x25 at position 315 found in-order BulkTransfer:Endpoint=0x82,Data=…,Length=0x25 at position 316 … found out-of-order BulkTransfer:Endpoint=0x01,Data=…,Length=0x25 at position 312 found in-order BulkTransfer:Endpoint=0x82,Data=…,Length=0x25 at position 320 while expecting: found in-order BulkTransfer:Endpoint=0x01,Data=…,Length=0x25 at position 315 found in-order BulkTransfer:Endpoint=0x82,Data=…,Length=0x25 at position 316 … found out-of-order BulkTransfer:Endpoint=0x01,Data=…,Length=0x25 at position 312 found in-order BulkTransfer:Endpoint=0x82,Data=…,Length=0x25 at position 314 … found in-order BulkTransfer:Endpoint=0x01,Data=…,Length=0x25 at position 319 found in-order BulkTransfer:Endpoint=0x82,Data=…,Length=0x25 at position 320 | ||||
* | Add json_object_get_*_member_with_default() helpers | Frédéric Danis | 2023-04-26 | 8 | -40/+55 |
| | | | | | json library previous to version 1.6.0 doesn't provide the json_object_get_*_member_with_default() functions. | ||||
* | trivial: post release version bump | Richard Hughes | 2023-02-08 | 2 | -4/+4 |
| | |||||
* | Release version 0.4.50.4.5 | Richard Hughes | 2023-02-08 | 2 | -0/+28 |
| | |||||
* | trivial: Fix critical warning when emulating devices | Richard Hughes | 2023-02-06 | 1 | -2/+4 |
| | |||||
* | Store the config-index as a GUsbDeviceEvent | Richard Hughes | 2023-02-06 | 1 | -3/+24 |
| | | | | This allows emulating the Google Servo Micro. | ||||
* | trivial: Fix critical warning when unloading an emulated device | Richard Hughes | 2023-02-03 | 1 | -1/+2 |
| | |||||
* | Record zero-sized device events | Richard Hughes | 2023-02-03 | 1 | -1/+0 |
| | | | | These are used for DFU reset operations. | ||||
* | Reset the in-order event index when clearing the event array | Richard Hughes | 2023-02-03 | 1 | -0/+1 |
| | |||||
* | Do not emit spurious ::device-removed events when emulating | Richard Hughes | 2023-02-03 | 5 | -27/+200 |
| | | | | | | | | | If we load new emulation data we have to do horrible tricks in the caller to avoid handling the remove event when loading new event data. Make the caller (fwupd) much simpler by emitting the correct signals. Also add a ::device-changed signal that we can use to reload the device events. | ||||
* | Save the libusb error if libusb_submit_transfer() fails | Richard Hughes | 2023-02-01 | 6 | -10/+80 |
| | | | | If the return code is LIBUSB_ERROR_NO_DEVICE we want to record that. | ||||
* | trivial: Add some debugging when resetting the event index | Richard Hughes | 2023-02-01 | 1 | -1/+4 |
| | |||||
* | Add g_usb_device_get_created() to better detect emulated replug | Richard Hughes | 2023-02-01 | 3 | -0/+45 |
| | |||||
* | trivial: post release version bump | Richard Hughes | 2023-01-30 | 3 | -7/+6 |
| | |||||
* | Release version 0.4.40.4.4 | Richard Hughes | 2023-01-30 | 2 | -0/+26 |
| | |||||
* | Reduce the debugging level when emulating firmware | Richard Hughes | 2023-01-27 | 5 | -4/+20 |
| | |||||
* | trivial: Export the gusb-device-event.h header | Richard Hughes | 2023-01-26 | 1 | -0/+1 |
| | |||||
* | Add g_usb_device_clear_events() for future use | Richard Hughes | 2023-01-25 | 3 | -0/+19 |
| | |||||
* | Emit remove devices with matching tags when loading contexts | Richard Hughes | 2023-01-24 | 1 | -3/+12 |
| | | | | | If a program, say fwupd, has references to existing devices it is probably not expected for the physical backing device to just vanish. | ||||
* | Add g_usb_device_get_tags() for future use | Richard Hughes | 2023-01-24 | 3 | -0/+21 |
| | |||||
* | Add g_usb_device_is_emulated() for future use | Richard Hughes | 2023-01-24 | 3 | -0/+20 |
| | |||||
* | Add g_usb_device_remove_tag() for future use | Richard Hughes | 2023-01-23 | 4 | -0/+41 |
| | |||||
* | trivial: Fix -Wdeclaration-after-statement | Richard Hughes | 2023-01-23 | 1 | -3/+2 |
| | |||||
* | Save removed devices in JSON dump only when requested | Frédéric Danis | 2023-01-19 | 2 | -4/+7 |
| | | | | | Removed devices should not be saved when trying dump events per update phase. | ||||
* | Load GUsb endpoints when loading interface | Frédéric Danis | 2023-01-19 | 1 | -0/+15 |
| | |||||
* | Fix _g_usb_interface_save without endpoints | Frédéric Danis | 2023-01-19 | 1 | -1/+1 |
| | | | | | when the g_usb_interface is created from _g_usb_device_load(), self->endpoints may not be initialized. | ||||
* | Fix g_usb_interface_finalize without endpoints | Frédéric Danis | 2023-01-11 | 1 | -1/+2 |
| | |||||
* | trivial: post release version bump | Richard Hughes | 2022-12-20 | 2 | -7/+5 |
| | |||||
* | Release version 0.4.30.4.3 | Richard Hughes | 2022-12-20 | 2 | -0/+17 |
| | |||||
* | trivial: Be less verbose | Richard Hughes | 2022-12-09 | 1 | -3/+1 |
| | |||||
* | Work around a libusb1 bug which causes devices to appear in the list twice | Richard Hughes | 2022-12-09 | 1 | -0/+6 |
| | |||||
* | trivial: Fix up a gtk-doc comment | Richard Hughes | 2022-10-26 | 1 | -1/+1 |
| | |||||
* | Export g_usb_device_has_tag() | Richard Hughes | 2022-10-26 | 5 | -6/+23 |
| | |||||
* | trivial: post release version bump | Richard Hughes | 2022-10-18 | 2 | -5/+4 |
| | |||||
* | Release version 0.4.20.4.2 | Richard Hughes | 2022-10-18 | 3 | -395/+186 |
| | |||||
* | Do not call the hotplug callback with the mutex held | Richard Hughes | 2022-10-17 | 1 | -6/+22 |
| | | | | | This fixes a regression introduced in 0ff5cca6 which causes a rare deadlock in fwupd. | ||||
* | Revert "Use GRecMutex to avoid a single-threaded lockup" | Richard Hughes | 2022-10-17 | 1 | -14/+5 |
| | | | | | | This reverts commit cfb40102b0985d52cbd5d9348dedd1a4cc06b10c -- it's the wrong fix as the hotplug callback is being called by two different threads; even a recursive mutex isn't going to save us there. | ||||
* | Close the GUsbDevice objects in gusbcmd | Richard Hughes | 2022-10-17 | 1 | -0/+5 |
| | |||||
* | Use GRecMutex to avoid a single-threaded lockup | Richard Hughes | 2022-10-12 | 1 | -5/+14 |
| | | | | | | | | | If we call libusb_get_bos_descriptor() in the hotplug device-add handler then we eventually call libusb_handle_events_completed() which can run handle_events -- which might emit devices. Using a mutex that's safe for recursing prevents the deadlock. This fixes half the problem when getting descriptors on deeply nested USB hubs. | ||||
* | trivial: post release version bump | Richard Hughes | 2022-10-01 | 2 | -5/+5 |
| | |||||
* | Release version 0.4.10.4.1 | Richard Hughes | 2022-10-01 | 2 | -1/+12 |
| | |||||
* | Port from gtkdoc to gi-docgen | Richard Hughes | 2022-09-30 | 12 | -139/+98 |
| | | | | Fixes https://github.com/hughsie/libgusb/issues/79 | ||||
* | Allow loading and saving only devices with specific tags | Richard Hughes | 2022-09-13 | 3 | -0/+60 |
| | | | | | This would allow us, for example, to only load devices in bootloader or runtime phases. | ||||
* | trivial: Don't return -1 for failure for a gboolean | Richard Hughes | 2022-09-13 | 1 | -1/+1 |
| | |||||
* | trivial: Fix up clang-format issue | Richard Hughes | 2022-09-13 | 1 | -1/+1 |
| | |||||
* | Allow adding tags to the JSON device event | Richard Hughes | 2022-09-13 | 4 | -0/+76 |
| | | | | This allows us to see which phase of the emulation should be used. | ||||
* | Include the created time in the JSON event | Richard Hughes | 2022-09-13 | 1 | -0/+10 |
| | |||||
* | trivial: Remove existing devices when loading a context | Richard Hughes | 2022-09-13 | 1 | -0/+4 |
| | |||||
* | Include removed devices in the JSON dump | Richard Hughes | 2022-09-13 | 1 | -0/+13 |
| | | | | This is needed to emulate devices with bootloader modes. | ||||
* | trivial: Update to non-deprecated macos-12 CI target | Richard Hughes | 2022-09-12 | 1 | -2/+2 |
| |