Revision 618c169b
ID | 618c169b577db64ac6589ad48825d2e11760d1a6 |
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>
Files
- added
- modified
- copied
- renamed
- deleted
- hw
- usb-hub.c (diff)
- usb-musb.c (diff)
- usb-ohci.c (diff)
- usb-uhci.c (diff)
- usb.c (diff)
- usb.h (diff)