]> git.proxmox.com Git - qemu.git/commit - hw/usb/hcd-uhci.c
usb: kill USB_MSG_RESET
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 6 Jan 2012 14:23:10 +0000 (15:23 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 10 Feb 2012 10:12:04 +0000 (11:12 +0100)
commitd28f4e2d86317f7ef7398651e8a1d493e4bf8c88
treed4c76eb6f2378e42f51d59976d0ce652d6358011
parentd1f8b53618b3daa93a113ba02520cd1bd34c254b
usb: kill USB_MSG_RESET

The USB subsystem pipes internal reset notifications through
usb_handle_packet() with a special magic PID.  This indirection
is a pretty pointless excercise as it ends up being handled by
usb_generic_handle_packet anyway.

Replace the USB_MSG_RESET with a usb_device_reset() function
which can be called directly.  Also rename the existing usb_reset()
function to usb_port_reset() to avoid confusion.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb-ehci.c
hw/usb-hub.c
hw/usb-musb.c
hw/usb-ohci.c
hw/usb-uhci.c
hw/usb-xhci.c
hw/usb.c
hw/usb.h