From patchwork Mon Aug 18 14:28:30 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 35523 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f69.google.com (mail-oi0-f69.google.com [209.85.218.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 95EBE20676 for ; Mon, 18 Aug 2014 15:11:47 +0000 (UTC) Received: by mail-oi0-f69.google.com with SMTP id h136sf31442306oig.0 for ; Mon, 18 Aug 2014 08:11:47 -0700 (PDT) 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:mime-version:subject:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=qoz6R9PWbz826ojuWiMiYyH0qRsz3+E9V8Jw8etKRTo=; b=Ai6Nd9VA6fN53j+UzjwB97o5+hulA66pYLDQTFZ4mQR6QxmnRsLob0WSbhYTVY5jHV i6npW5j0iAJHT7oxQgN23dL6gU2sZ5/+gDmarzRRlqNImK33eliuqUxJJPXUxDkaepsn ZIbtWG0u05hLFNfd5+EtwUglU/yZV3Mrt1DcQWulal6BRyS7/jm6bRG0z1261ohuOhW3 m+xX9U8Rr1fiMOn1hiUHdAzl/pJvkD+lFDtmhATcX/zFSRpaPsyjzHrUs9PTTL0geQ1B gFkDgDjiMXbh737syL1oewHQTy17wWNrQJpQ3n/816+oQ38ZjNKwC7RN6YOOd3lUKvV5 39ag== X-Gm-Message-State: ALoCoQmQyodxznrSgqqqaDm9w8boLTc45+a9YclX4CuK//tZ+sqMz8V/6dwLg9AvMYtK/lcgmSIv X-Received: by 10.50.73.5 with SMTP id h5mr19204141igv.2.1408374707210; Mon, 18 Aug 2014 08:11:47 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.83.230 with SMTP id j93ls1879531qgd.40.gmail; Mon, 18 Aug 2014 08:11:47 -0700 (PDT) X-Received: by 10.220.59.138 with SMTP id l10mr540897vch.59.1408374707083; Mon, 18 Aug 2014 08:11:47 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id q6si5579880vey.71.2014.08.18.08.11.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Aug 2014 08:11:46 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id la4so5895321vcb.37 for ; Mon, 18 Aug 2014 08:11:46 -0700 (PDT) X-Received: by 10.220.118.136 with SMTP id v8mr772370vcq.50.1408374706922; Mon, 18 Aug 2014 08:11:46 -0700 (PDT) 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.221.37.5 with SMTP id tc5csp160452vcb; Mon, 18 Aug 2014 08:11:46 -0700 (PDT) X-Received: by 10.180.21.235 with SMTP id y11mr41191881wie.75.1408374705947; Mon, 18 Aug 2014 08:11:45 -0700 (PDT) Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id bq13si16309193wib.81.2014.08.18.08.11.45 for ; Mon, 18 Aug 2014 08:11:45 -0700 (PDT) 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 F386D4B605; Mon, 18 Aug 2014 17:10:00 +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 flm-0AJFbG80; Mon, 18 Aug 2014 17:10:00 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6E39D4B630; Mon, 18 Aug 2014 17:08:01 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C33524A04A for ; Mon, 18 Aug 2014 16:29:29 +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 0YbEBVT7i9rY for ; Mon, 18 Aug 2014 16:29:21 +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 bear.ext.ti.com (bear.ext.ti.com [192.94.94.41]) by theia.denx.de (Postfix) with ESMTPS id AE5D34A051 for ; Mon, 18 Aug 2014 16:29:02 +0200 (CEST) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by bear.ext.ti.com (8.13.7/8.13.7) with ESMTP id s7IET1BW012916 for ; Mon, 18 Aug 2014 09:29:01 -0500 Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7IET11W006483 for ; Mon, 18 Aug 2014 09:29:01 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.174.1; Mon, 18 Aug 2014 09:29:00 -0500 Received: from a0393678lt.apr.dhcp.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id s7IESbM9003614; Mon, 18 Aug 2014 09:28:58 -0500 From: Kishon Vijay Abraham I To: , , , , , , Date: Mon, 18 Aug 2014 19:58:30 +0530 Message-ID: <1408372115-4570-9-git-send-email-kishon@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1408372115-4570-1-git-send-email-kishon@ti.com> References: <1408372115-4570-1-git-send-email-kishon@ti.com> MIME-Version: 1.0 X-Mailman-Approved-At: Mon, 18 Aug 2014 17:07:53 +0200 Subject: [U-Boot] [UBOOT RFC PATCH 08/13] common: cmd_dfu: invoke board_usb_cleanup() for cleaning up X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kishon@ti.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 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 Invoked board_usb_cleanup for cleaning up initialized USB. It will be invoked if the user enterts ctrl-C. Signed-off-by: Kishon Vijay Abraham I --- common/cmd_dfu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/cmd_dfu.c b/common/cmd_dfu.c index a03538d..1e7d50c 100644 --- a/common/cmd_dfu.c +++ b/common/cmd_dfu.c @@ -55,6 +55,7 @@ static int do_dfu(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) } exit: g_dnl_unregister(); + board_usb_cleanup(controller_index, USB_INIT_DEVICE); done: dfu_free_entities();