Message ID | 1504497610-4775-4-git-send-email-bmeng.cn@gmail.com |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="dAQWbzg3"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xlwyg3hf0z9s2G for <incoming@patchwork.ozlabs.org>; Mon, 4 Sep 2017 13:56:59 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 2F0F4C21E54; Mon, 4 Sep 2017 03:56:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 56F58C21E05; Mon, 4 Sep 2017 03:55:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5C495C21DD0; Mon, 4 Sep 2017 03:55:54 +0000 (UTC) Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by lists.denx.de (Postfix) with ESMTPS id 75AC5C21E61 for <u-boot@lists.denx.de>; Mon, 4 Sep 2017 03:55:51 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id t193so3668261pgc.4 for <u-boot@lists.denx.de>; Sun, 03 Sep 2017 20:55:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=+Eigb0ARwIe2BHQo38ZXTLF6UBA4TClQmViSwEO0sf0=; b=dAQWbzg319KRA6USaSBArXuT5OL1l35qHWyLAy0U8pFQWO1g2SThwys8k9/dQqHsB5 y8phxaoJfWOd5RZXzaKO5s+/sKyQIbzk1tYUPhfMfqs7C8o4+0/wNI9cRWAkrK8nHUUn lSfR8NiYRyHxwKGSm1UAK6j1uSH5SzFMeROhZNnZ5xoOucMsebhx5LaX788r3Wkp5dgo XAPhrJnS4BwHWdyrkndCvEXIiNS+B18YVccRV1qka78ei77xaenNUovXsrwpD2AdQYLb gLaNQ8f5PSBrzXtQ3cnMQnuC9xGK/dIXk0iH/ZGmxczwEU6SoboUOmlNNa6Jz4y0f2uI 3LTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=+Eigb0ARwIe2BHQo38ZXTLF6UBA4TClQmViSwEO0sf0=; b=K3EUSdkdvas+DAeiMXtllnvQDdjkNGVmTWei5K906Tf1nFhjDH+9QH2dLIjZzFI0hN NOrCN/BywyGhEPY4JIHsZNRTtP1ORJg388PGmukIJdBrqLG7JZFk/uw75gcPBbjD6Mtw YMVjxPW8nFMwJC6Ud3H6CS6NK626CyyFjFjN7qgq4nQVWRIFmwPzfqof2y74k3p2Umwn AerWHD2XSXx9hzrqt5UPlpW0B83IZJEMc+ORVJVqsn0iTQuKuWKCVc1vEkZMh1ZIOjft l2N+TF4a/6DSk6/G/16dlJUW/sixX6rEnLss6dvEapBFi7CuNn/QRwHetVSv9kwQKB5O umAw== X-Gm-Message-State: AHPjjUimwrRm1E6TQOVOB3LjUGjFCPea7ftzIDAgGz83AiRIjuSEaSmZ n47QLCg/kLX45Q== X-Google-Smtp-Source: ADKCNb69hZ5pg//7KRLpZZFcoPLzLHQmCx+ZeouvNadAWQwp69o7aPLDhpOOi0Qy30KHkwgXFrbWVA== X-Received: by 10.98.201.215 with SMTP id l84mr9795767pfk.143.1504497350229; Sun, 03 Sep 2017 20:55:50 -0700 (PDT) Received: from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com. [147.11.156.139]) by smtp.gmail.com with ESMTPSA id f5sm8458163pga.32.2017.09.03.20.55.48 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 03 Sep 2017 20:55:49 -0700 (PDT) From: Bin Meng <bmeng.cn@gmail.com> To: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, U-Boot Mailing List <u-boot@lists.denx.de> Date: Sun, 3 Sep 2017 21:00:10 -0700 Message-Id: <1504497610-4775-4-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1504497610-4775-1-git-send-email-bmeng.cn@gmail.com> References: <1504497610-4775-1-git-send-email-bmeng.cn@gmail.com> Subject: [U-Boot] [PATCH 4/4] cmd: ide: Make the first device the default one X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
[U-Boot,1/4] blk: Use macros for block device vendor/product/rev string size
|
expand
|
diff --git a/cmd/ide.c b/cmd/ide.c index e3c3242..bdb5980 100644 --- a/cmd/ide.c +++ b/cmd/ide.c @@ -30,7 +30,7 @@ #endif /* Current I/O Device */ -static int curr_device = -1; +static int curr_device; int do_ide(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) {
At present the IDE device number is initialized to -1, which means we cannot type "ide read" command before setting the device number via "ide device #". For convenience, let's set the first device as the default one. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> --- cmd/ide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)