]> git.proxmox.com Git - mirror_qemu.git/commit
usb: cancel async packets on unplug
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 23 May 2011 15:37:12 +0000 (17:37 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 14 Jun 2011 10:56:49 +0000 (12:56 +0200)
commit07771f6fcebdb12de6dca537423f56299ed9b4b9
tree374f2b5049bf5dc38984921b76250c590ab65403
parent8e4faf3de9d1a8bd3289e5cc69d4ed206e2ed0cf
usb: cancel async packets on unplug

This patch adds USBBusOps struct with (for now) only a single callback
which is called when a device is about to be destroyed.  The USB Host
adapters are implementing this callback and use it to cancel any async
requests which might be in flight before the device actually goes away.

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