Message ID | 20130807110901.6617.23985.malonedeb@soybean.canonical.com |
---|---|
State | New |
Headers | show |
Your observation is correct, but this is already fixed upstream: commit 628e54857a82a3cb65ef96c12640c30d6307a064 Author: Gerd Hoffmann <kraxel@redhat.com> Date: Wed Jun 12 13:17:02 2013 +0200 usb-host-libusb: set USB_DEV_FLAG_IS_HOST ** Changed in: qemu Status: New => Fix Committed
Thanks, this works as expected. Can this get backported to 1.5.x?
** Changed in: qemu Status: Fix Committed => Fix Released
diff --git a/hw/usb/core.c b/hw/usb/core.c index 05948ca..20753cc 100644 --- a/hw/usb/core.c +++ b/hw/usb/core.c @@ -409,6 +409,8 @@ void usb_handle_packet(USBDevice *dev, USBPacket *p) /* hcd drivers cannot handle async for isoc */ assert(p->ep->type != USB_ENDPOINT_XFER_ISOC); /* using async for interrupt packets breaks migration */ + printf("type=%x %x %x %p %p\n", p->ep->type, + dev->flags, p->ep->dev->flags, dev, p->ep->dev); assert(p->ep->type != USB_ENDPOINT_XFER_INT || (dev->flags & (1 << USB_DEV_FLAG_IS_HOST))); usb_packet_set_state(p, USB_PACKET_ASYNC);