]> git.proxmox.com Git - mirror_qemu.git/commit - hw/usb/hcd-musb.c
usb: rework attach/detach workflow
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 1 Dec 2010 10:27:05 +0000 (11:27 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 11 Jan 2011 16:01:02 +0000 (17:01 +0100)
commit618c169b577db64ac6589ad48825d2e11760d1a6
treeb9b60ddfcf2d07041117ec425118deb06437cf01
parent0d86d2bebb625a222f70b76972139f6a272e3e0b
usb: rework attach/detach workflow

Add separate detach callback to USBPortOps, split
uhci/ohci/musb/usbhub attach functions into two.

Move common code to the usb_attach() function, only
the hardware-specific bits remain in the attach/detach
callbacks.

Keep track of the port it is attached to for each usb device.

[ v3: fix tyops in usb-musb.c ]

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