usb-host-libusb: set USB_DEV_FLAG_IS_HOST
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 12 Jun 2013 11:17:02 +0000 (13:17 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Jun 2013 06:40:54 +0000 (08:40 +0200)
... like host-{linux,bsd}.c do.

Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/host-libusb.c

index 0c12b0f..e2f3cc8 100644 (file)
@@ -895,6 +895,7 @@ static int usb_host_initfn(USBDevice *udev)
     USBHostDevice *s = USB_HOST_DEVICE(udev);
 
     loglevel = s->loglevel;
+    udev->flags |= (1 << USB_DEV_FLAG_IS_HOST);
     udev->auto_attach = 0;
     QTAILQ_INIT(&s->requests);
     QTAILQ_INIT(&s->isorings);