crosvm/devices/src
Daniel Verkamp d3935a5702 usb_util: assume active config for single-config devices
When there is only one configuration listed in a device's descriptors,
assume that configuration is the active one without needing to send a
blocking control request to get the active configuration from the
device.

This moves the logic used in the USB host device code into usb_util, so
it will be used for all callers of get_active_configuration().

BUG=b:180238956
BUG=chromium:1030778
TEST=Share USB device with Crostini

Change-Id: I71a7d12a7edcd1fd0d063af58f63708b3dbda348
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2811858
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2021-04-22 17:25:21 +00:00
..
irqchip replace all usage of MsgOnSocket derives 2021-04-02 15:40:41 +00:00
pci sys_util: Fix 1.51.0 acronym case clippy warnings. 2021-04-21 00:14:11 +00:00
register_space Add "base" crate and transition crosvm usages to it from sys_util 2020-08-06 18:19:44 +00:00
usb usb_util: assume active config for single-config devices 2021-04-22 17:25:21 +00:00
utils base: First steps towards universal RawDescriptor 2020-10-31 07:12:34 +00:00
virtio Improve code around creation of VioS recv thread 2021-04-22 00:21:40 +00:00
acpi.rs Fix clippy errors and some warnings. 2021-01-18 15:50:25 +00:00
bat.rs replace all usage of MsgOnSocket derives 2021-04-02 15:40:41 +00:00
bus.rs replace all usage of MsgOnSocket derives 2021-04-02 15:40:41 +00:00
cmos.rs devices: add un-mutex-ed BusDevice in Bus 2020-11-23 22:47:29 +00:00
direct_io.rs crosvm-direct: p-t support for port and memory I/O. 2021-04-01 03:02:44 +00:00
direct_irq.rs crosvm-direct: interrupt passthrough kernel interface. 2021-03-31 02:12:55 +00:00
i8042.rs i8042: use address instead of offset for read and write 2021-01-29 18:04:35 +00:00
lib.rs crosvm-direct: p-t support for port and memory I/O. 2021-04-01 03:02:44 +00:00
pit.rs devices: add un-mutex-ed BusDevice in Bus 2020-11-23 22:47:29 +00:00
pl030.rs devices: add un-mutex-ed BusDevice in Bus 2020-11-23 22:47:29 +00:00
proxy.rs Conditionally apply linux-only operations 2021-04-19 19:58:32 +00:00
serial.rs Enable KVM_CAP_ARM_PROTECTED_VM when --protected-vm is passed. 2021-03-02 19:04:43 +00:00
serial_device.rs Enable KVM_CAP_ARM_PROTECTED_VM when --protected-vm is passed. 2021-03-02 19:04:43 +00:00
vfio.rs crosvm: vfio: allow forwarding of multiple non-MSI IRQs 2021-04-20 18:24:56 +00:00