From patchwork Tue Jul 12 00:16:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 104305 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id DE760B6F18 for ; Tue, 12 Jul 2011 10:17:53 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7370B280AF; Tue, 12 Jul 2011 02:17:26 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KeQDQOGo3t1c; Tue, 12 Jul 2011 02:17:26 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4AA14280B1; Tue, 12 Jul 2011 02:17:08 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A15412808D for ; Tue, 12 Jul 2011 02:17:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17oB0DzCyNAO for ; Tue, 12 Jul 2011 02:17:00 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-fx0-f50.google.com (mail-fx0-f50.google.com [209.85.161.50]) by theia.denx.de (Postfix) with ESMTPS id 8CF3928088 for ; Tue, 12 Jul 2011 02:17:00 +0200 (CEST) Received: by mail-fx0-f50.google.com with SMTP id 2so3365193fxh.23 for ; Mon, 11 Jul 2011 17:17:00 -0700 (PDT) Received: by 10.223.146.1 with SMTP id f1mr8426153fav.48.1310429820416; Mon, 11 Jul 2011 17:17:00 -0700 (PDT) Received: from mashiro.kolej.mff.cuni.cz (vasut.kolej.mff.cuni.cz [78.128.198.52]) by mx.google.com with ESMTPS id b3sm9568000fao.20.2011.07.11.17.16.58 (version=SSLv3 cipher=OTHER); Mon, 11 Jul 2011 17:16:59 -0700 (PDT) From: Marek Vasut To: u-boot@lists.denx.de Date: Tue, 12 Jul 2011 02:16:47 +0200 Message-Id: <1310429807-23840-5-git-send-email-marek.vasut@gmail.com> X-Mailer: git-send-email 1.7.5.3 In-Reply-To: <1310429807-23840-1-git-send-email-marek.vasut@gmail.com> References: <1310429807-23840-1-git-send-email-marek.vasut@gmail.com> Subject: [U-Boot] [PATCH 5/5] USB: Set portnr so USB1.1 and 1.0 devices work on EHCI controllers X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Marek Vasut --- common/usb.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/common/usb.c b/common/usb.c index 8e84266..a401c09 100644 --- a/common/usb.c +++ b/common/usb.c @@ -1166,6 +1166,7 @@ void usb_hub_port_connect_change(struct usb_device *dev, int port) dev->children[port] = usb; usb->parent = dev; + usb->portnr = port + 1; /* Run it through the hoops (find a driver, etc) */ if (usb_new_device(usb)) { /* Woops, disable the port */