Received: from eggs.gnu.org ([140.186.70.92]:35254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REeFL-0006gp-87 for qemu-devel@nongnu.org; Fri, 14 Oct 2011 05:40:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REeFJ-0005VE-S6 for qemu-devel@nongnu.org; Fri, 14 Oct 2011 05:40:07 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REeFJ-0005TG-EX for qemu-devel@nongnu.org; Fri, 14 Oct 2011 05:40:05 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9E9e3nS009652 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 14 Oct 2011 05:40:03 -0400 From: Gerd Hoffmann Date: Fri, 14 Oct 2011 11:40:18 +0200 Message-Id: <1318585218-21965-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] 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 3e923a0..908c622 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