]> git.proxmox.com Git - mirror_qemu.git/commit - hw/usb/hcd-musb.c
usb: Set USBEndpoint in usb_packet_setup().
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 12 Jan 2012 12:23:01 +0000 (13:23 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Feb 2012 10:31:57 +0000 (11:31 +0100)
commit079d0b7f1eedcc634c371fe05b617fdc55c8b762
tree60ee42f36b295edb49fcb62af5912f769efa9991
parent63095ab54c1ce554b1fc825fc678394ccb129e5b
usb: Set USBEndpoint in usb_packet_setup().

With the separation of the device lookup (via usb_find_device) and
packet processing we can lookup device and endpoint before setting up
the usb packet.  So we can initialize USBPacket->ep early and keep it
valid for the whole lifecycle of the USBPacket.  Also the devaddr and
devep fields are not needed any more.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
19 files changed:
hw/usb-audio.c
hw/usb-bt.c
hw/usb-ccid.c
hw/usb-ehci.c
hw/usb-hid.c
hw/usb-hub.c
hw/usb-msd.c
hw/usb-musb.c
hw/usb-net.c
hw/usb-ohci.c
hw/usb-serial.c
hw/usb-uhci.c
hw/usb-wacom.c
hw/usb-xhci.c
hw/usb.c
hw/usb.h
usb-bsd.c
usb-linux.c
usb-redir.c