Patchwork [7/9] usb-host-libusb: set USB_DEV_FLAG_IS_HOST

login
register
mail settings
Submitter Gerd Hoffmann
Date June 24, 2013, 6:44 a.m.
Message ID <1372056283-4845-8-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/253650/
State New
Headers show

Comments

Gerd Hoffmann - June 24, 2013, 6:44 a.m.
... like host-{linux,bsd}.c do.

Cc: qemu-stable@nongnu.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/usb/host-libusb.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
index 0c12b0f..e2f3cc8 100644
--- a/hw/usb/host-libusb.c
+++ b/hw/usb/host-libusb.c
@@ -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);