From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:54150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLFlg-0005by-B8 for qemu-devel@nongnu.org; Tue, 01 Nov 2011 10:56:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLFlY-0003Og-Nn for qemu-devel@nongnu.org; Tue, 01 Nov 2011 10:56:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLFlY-0003OQ-Dt for qemu-devel@nongnu.org; Tue, 01 Nov 2011 10:56:40 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pA1EudEA002587 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 1 Nov 2011 10:56:39 -0400 From: Gerd Hoffmann Date: Tue, 1 Nov 2011 15:56:28 +0100 Message-Id: <1320159390-29797-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1320159390-29797-1-git-send-email-kraxel@redhat.com> References: <1320159390-29797-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann When attaching a new device we must send a wakeup request to the root hub, otherwise the guest will not notice the new device in case the usb hub is suspended. Signed-off-by: Gerd Hoffmann --- hw/usb-hub.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/usb-hub.c b/hw/usb-hub.c index 09c6516..7b47079 100644 --- a/hw/usb-hub.c +++ b/hw/usb-hub.c @@ -163,6 +163,7 @@ static void usb_hub_attach(USBPort *port1) } else { port->wPortStatus &= ~PORT_STAT_LOW_SPEED; } + usb_wakeup(&s->dev); } static void usb_hub_detach(USBPort *port1) -- 1.7.1