Skip to content

usb descriptor overhaul.

Gerd Hoffmann qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest24 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/24usb: data structs and helpers for usb descriptors.Makefile.objs hw/usb-desc.c hw/usb-desc.h +2 more+339 -10 replies
2/24usb hid: use new descriptor infrastructure.hw/usb-hid.c+205 -2430 replies
3/24usb serial: use new descriptor infrastructure.hw/usb-serial.c+83 -1170 replies
4/24usb storage: use new descriptor infrastructure.hw/usb-msd.c+63 -1040 replies
5/24usb wacom: use new descriptor infrastructure.hw/usb-wacom.c+73 -1050 replies
6/24usb bluetooth: use new descriptor infrastructure.hw/usb-bt.c+202 -2710 replies
7/24usb hub: use new descriptor infrastructure.hw/usb-hub.c+78 -630 replies
8/24usb descriptors: add settable strings.hw/usb-bus.c hw/usb-desc.c hw/usb-desc.h +1 more+57 -90 replies
9/24usb storage: serial number supporthw/usb-msd.c+6 -00 replies
10/24usb network: use new descriptor infrastructure.hw/usb-net.c+209 -2440 replies
11/24usb: move USB_REQ_SET_ADDRESS handling to common codehw/usb-bt.c hw/usb-desc.c hw/usb-hid.c +6 more+7 -290 replies
12/24usb: move USB_REQ_{GET, SET}_CONFIGURATION handling to common codehw/usb-bt.c hw/usb-desc.c hw/usb-desc.h +8 more+66 -930 replies
13/24usb: move remote wakeup handling to common codehw/usb-bt.c hw/usb-desc.c hw/usb-hid.c +6 more+31 -1550 replies
14/24usb: create USBPortOps, move attach there.hw/usb-bus.c hw/usb-hub.c hw/usb-musb.c +4 more+28 -100 replies
15/24usb: rework attach/detach workflowhw/usb-hub.c hw/usb-musb.c hw/usb-ohci.c +3 more+122 -1330 replies
16/24usb: add usb_wakeup() + wakeup callback to port opshw/usb.c hw/usb.h+9 -00 replies
17/24usb: uhci: remote wakeup support.hw/usb-uhci.c+21 -20 replies
18/24usb: hid: remote wakeup support.hw/usb-hid.c+2 -00 replies
19/24usb: add speed mask to portshw/usb-bus.c hw/usb-hub.c hw/usb-musb.c +3 more+18 -60 replies
20/24usb: add attach callbackhw/usb.c hw/usb.h+11 -10 replies
21/24usb: add usb_desc_attachhw/usb-desc.c hw/usb-desc.h+34 -30 replies
22/24usb: add device qualifier supporthw/usb-desc.c hw/usb-desc.h hw/usb.h +1 more+52 -00 replies
23/24usb storage: high speed supporthw/usb-msd.c+46 -50 replies
24/24usb storage: fix status reportinghw/usb-msd.c+7 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/24] usb descriptor overhaul.

Hi,

This patch series is the start for an overhaul of the usb descriptor handling for emulated usb devices. Instead of storing the device desriptors in blobs (aka char arrays) they are stored in structs, which makes it alot easier to work with them. This in turn allows to move common device management to common code and also makes it alot easier to add high speed support to the emulated devices.

The patch series also features some usb subsystem cleanups and fixes, remote wakeup support for hid devices and some preparing bits for high-speed support.

The patches are also available in the git repository at:
git://anongit.freedesktop.org/spice/qemu usb.2

cheers,
Gerd

PS: There is also a usb.2.wip branch in the git repo with some more
wip/experimental/debug patches for those who what to play with ehci.

Gerd Hoffmann (24):
usb: data structs and helpers for usb descriptors.
usb hid: use new descriptor infrastructure.
usb serial: use new descriptor infrastructure.
usb storage: use new descriptor infrastructure.
usb wacom: use new descriptor infrastructure.
usb bluetooth: use new descriptor infrastructure.
usb hub: use new descriptor infrastructure.
usb descriptors: add settable strings.
usb storage: serial number support
usb network: use new descriptor infrastructure.
usb: move USB_REQ_SET_ADDRESS handling to common code
usb: move USB_REQ_{GET,SET}_CONFIGURATION handling to common code
usb: move remote wakeup handling to common code
usb: create USBPortOps, move attach there.
usb: rework attach/detach workflow
usb: add usb_wakeup() + wakeup callback to port ops
usb: uhci: remote wakeup support.
usb: hid: remote wakeup support.
usb: add speed mask to ports
usb: add attach callback
usb: add usb_desc_attach
usb: add device qualifier support
usb storage: high speed support
usb storage: fix status reporting

 Makefile.objs   |    2 +-
 hw/usb-bt.c     |  525 ++++++++++++++++++++++--------------------------------
 hw/usb-bus.c    |    6 +-
 hw/usb-desc.c   |  406 ++++++++++++++++++++++++++++++++++++++++++
 hw/usb-desc.h   |   92 ++++++++++
 hw/usb-hid.c    |  486 ++++++++++++++++++++++-----------------------------
 hw/usb-hub.c    |  227 +++++++++++-------------
 hw/usb-msd.c    |  263 ++++++++++++---------------
 hw/usb-musb.c   |   43 ++---
 hw/usb-net.c    |  528 +++++++++++++++++++++++--------------------------------
 hw/usb-ohci.c   |   87 +++++-----
 hw/usb-serial.c |  236 +++++++++----------------
 hw/usb-uhci.c   |   97 ++++++-----
 hw/usb-wacom.c  |  214 ++++++++---------------
 hw/usb.c        |   34 ++++-
 hw/usb.h        |   46 +++++-
 trace-events    |   11 ++
 17 files changed, 1736 insertions(+), 1567 deletions(-)
 create mode 100644 hw/usb-desc.c
 create mode 100644 hw/usb-desc.h