From patchwork Tue Mar 3 11:10:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dileep Katta X-Patchwork-Id: 45349 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E7B8421429 for ; Tue, 3 Mar 2015 11:12:10 +0000 (UTC) Received: by wghl18 with SMTP id l18sf28184154wgh.3 for ; Tue, 03 Mar 2015 03:12:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list; bh=waCRhTnIV3hHg/oD3zWSHR8lHtX5UknQ14no20WxLs8=; b=mBR9/yKlERgxviuFZh95aL5T0KsiRBL5RoMv3FEzLSVE5wm4lFKkeJLNhtX2xnRvdx yDBWZHs+dZHGnlF7/djIpAZDEvz8BnaJ4b2H4lCtibLwy2m3kuDnrPRq773J+6WtYilC gbQGabdIfx+5s3DbOWpR3SLuZPy7mTDjRXRqIR+4I3KuXnCn5NseDUVxna7xugwqcpr1 9beTa3LU71cCU4k5OqCwOShCTOrwZzEL0H01bMKaKi+I/2TBDcL41GP4yan6f+TnNM13 ZnzRYLoMqHuHAOMwjh75ndoJf8iM3q3va7roKm/7QGPfJSmjSh9iV6rjqR3NWcIAiOvh lkJA== X-Gm-Message-State: ALoCoQkM0jp2PRLUaCniOyHsCjKnMyFniUnPmmAmoo9xAtcaeASY481LIisn6xXSw2ty83Sg9TPJ X-Received: by 10.112.138.202 with SMTP id qs10mr4387111lbb.24.1425381130230; Tue, 03 Mar 2015 03:12:10 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.28.132 with SMTP id b4ls24947lah.33.gmail; Tue, 03 Mar 2015 03:12:10 -0800 (PST) X-Received: by 10.152.36.138 with SMTP id q10mr28017416laj.113.1425381130038; Tue, 03 Mar 2015 03:12:10 -0800 (PST) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id lu7si257133lbb.124.2015.03.03.03.12.10 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Mar 2015 03:12:10 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbiz11 with SMTP id z11so10344431lbi.13 for ; Tue, 03 Mar 2015 03:12:10 -0800 (PST) X-Received: by 10.112.37.198 with SMTP id a6mr14434476lbk.86.1425381129948; Tue, 03 Mar 2015 03:12:09 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp491370lbj; Tue, 3 Mar 2015 03:12:08 -0800 (PST) X-Received: by 10.194.249.37 with SMTP id yr5mr34940613wjc.66.1425381128383; Tue, 03 Mar 2015 03:12:08 -0800 (PST) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id eu20si846218wjc.43.2015.03.03.03.12.07; Tue, 03 Mar 2015 03:12:08 -0800 (PST) Received-SPF: none (google.com: u-boot-bounces@lists.denx.de does not designate permitted sender hosts) client-ip=85.214.87.163; Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 30E364B5D0; Tue, 3 Mar 2015 12:12:07 +0100 (CET) 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 iuxIvfoIvVWF; Tue, 3 Mar 2015 12:12:07 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BA25E4B5B9; Tue, 3 Mar 2015 12:12:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CC4C44B5CB for ; Tue, 3 Mar 2015 12:12:03 +0100 (CET) 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 SyNvfTkzlwZH for ; Tue, 3 Mar 2015 12:12:03 +0100 (CET) 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-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by theia.denx.de (Postfix) with ESMTPS id 54B7A4B58F for ; Tue, 3 Mar 2015 12:11:59 +0100 (CET) Received: by pabli10 with SMTP id li10so23265790pab.2 for ; Tue, 03 Mar 2015 03:11:58 -0800 (PST) X-Received: by 10.67.23.101 with SMTP id hz5mr55449255pad.47.1425381118262; Tue, 03 Mar 2015 03:11:58 -0800 (PST) Received: from localhost.localdomain ([223.227.218.142]) by mx.google.com with ESMTPSA id dq4sm584321pdb.96.2015.03.03.03.11.39 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Mar 2015 03:11:57 -0800 (PST) From: Dileep Katta To: u-boot@lists.denx.de, robherring2@gmail.com, trini@ti.com, rob.herring@linaro.org, srae@broadcom.com, l.majewski@samsung.com, angelabaker@ti.com Date: Tue, 3 Mar 2015 16:40:42 +0530 Message-Id: <1425381044-19460-2-git-send-email-dileep.katta@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1425381044-19460-1-git-send-email-dileep.katta@linaro.org> References: <1425381044-19460-1-git-send-email-dileep.katta@linaro.org> Cc: Dileep Katta Subject: [U-Boot] [PATCH v2 2/4] fastboot: call board_usb_init() to enable usb X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: dileep.katta@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 g_dnl_gadget_register() fails for dra7xx dwc3 gadget when running cmd_fastboot. Calling board_usb_init() fixes this. Signed-off-by: Angela Stegmaier Signed-off-by: Dileep Katta --- common/cmd_fastboot.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/cmd_fastboot.c b/common/cmd_fastboot.c index 346ab80..d7b8f6d 100644 --- a/common/cmd_fastboot.c +++ b/common/cmd_fastboot.c @@ -10,11 +10,13 @@ #include #include #include +#include static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { int ret; + board_usb_init(0, USB_INIT_DEVICE); g_dnl_clear_detach(); ret = g_dnl_register("usb_dnl_fastboot"); if (ret)