From patchwork Tue Jan 8 13:16:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 210413 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3636B2C0093 for ; Wed, 9 Jan 2013 01:48:05 +1100 (EST) Received: from localhost ([::1]:50339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsaTD-0006T2-FA for incoming@patchwork.ozlabs.org; Tue, 08 Jan 2013 09:48:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsZ2s-0007Dr-Vx for qemu-devel@nongnu.org; Tue, 08 Jan 2013 08:16:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsZ2n-00039g-Hy for qemu-devel@nongnu.org; Tue, 08 Jan 2013 08:16:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:29892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsZ2n-00039H-BP for qemu-devel@nongnu.org; Tue, 08 Jan 2013 08:16:41 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r08DGejS025852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 8 Jan 2013 08:16:40 -0500 Received: from rincewind.home.kraxel.org (ovpn-116-40.ams2.redhat.com [10.36.116.40]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r08DGdiI015850; Tue, 8 Jan 2013 08:16:40 -0500 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 7150441A00; Tue, 8 Jan 2013 14:16:39 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 8 Jan 2013 14:16:38 +0100 Message-Id: <1357650999-17219-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1357650999-17219-1-git-send-email-kraxel@redhat.com> References: <1357650999-17219-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 2/3] xhci: call xhci_detach_slot on root port detach too 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 Signed-off-by: Gerd Hoffmann --- hw/usb/hcd-xhci.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c index 5d4d876..b4736f5 100644 --- a/hw/usb/hcd-xhci.c +++ b/hw/usb/hcd-xhci.c @@ -2957,6 +2957,7 @@ static void xhci_detach(USBPort *usbport) XHCIState *xhci = usbport->opaque; XHCIPort *port = xhci_lookup_port(xhci, usbport); + xhci_detach_slot(xhci, usbport); xhci_port_update(port, 1); }