From patchwork Tue Nov 1 14:56:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 123080 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 75631B6F80 for ; Wed, 2 Nov 2011 01:57:10 +1100 (EST) Received: from localhost ([::1]:54775 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLFlv-0005qn-4O for incoming@patchwork.ozlabs.org; Tue, 01 Nov 2011 10:57:03 -0400 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 Received: from rincewind.home.kraxel.org (ovpn-116-26.ams2.redhat.com [10.36.116.26]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pA1EuZmV003806; Tue, 1 Nov 2011 10:56:37 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id AC5EB400C8; Tue, 1 Nov 2011 15:56:30 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org 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> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 1/3] usb-hub: wakeup on attach X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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)