Received: from eggs.gnu.org ([140.186.70.92]:48877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRLMT-0005eP-OK for qemu-devel@nongnu.org; Tue, 31 May 2011 05:35:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QRLMP-0002oO-Cj for qemu-devel@nongnu.org; Tue, 31 May 2011 05:35:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QRLMO-0002mJ-Oj for qemu-devel@nongnu.org; Tue, 31 May 2011 05:35:37 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4V9ZaTB022806 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 31 May 2011 05:35:36 -0400 From: Hans de Goede Date: Tue, 31 May 2011 11:35:25 +0200 Message-Id: <1306834530-12763-10-git-send-email-hdegoede@redhat.com> In-Reply-To: <1306834530-12763-1-git-send-email-hdegoede@redhat.com> References: <1306834530-12763-1-git-send-email-hdegoede@redhat.com> Subject: [Qemu-devel] [PATCH 09/14] usb-linux: Don't declare a usbdevice_name List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Hans de Goede Declaring a usbdevice_name while we still have an explicit call to usb_host_device_open in vl.c causes usb_host_device_open to get called twice if the initial call fails. --- usb-linux.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index eb9805b..3508cda 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1227,8 +1227,12 @@ static struct USBDeviceInfo usb_host_dev_info = { .handle_control = usb_host_handle_control, .handle_reset = usb_host_handle_reset, .handle_destroy = usb_host_handle_destroy, +#if 0 /* HDG: having this enabled while still having an explicit call to + usb_host_device_open in vl.c causes usb_host_device_open to get called + twice if the initial call fails */ .usbdevice_name = "host", .usbdevice_init = usb_host_device_open, +#endif .qdev.props = (Property[]) { DEFINE_PROP_UINT32("hostbus", USBHostDevice, match.bus_num, 0), DEFINE_PROP_UINT32("hostaddr", USBHostDevice, match.addr, 0), -- 1.7.5.1