Message ID | 20201130015402.2328621-7-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Simon Glass |
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=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=KAfYvycn; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CkpJ21m82z9sTc for <incoming@patchwork.ozlabs.org>; Mon, 30 Nov 2020 12:56:50 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5F149827BD; Mon, 30 Nov 2020 02:56:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="KAfYvycn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0B524827A3; Mon, 30 Nov 2020 02:55:06 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BB1D08278A for <u-boot@lists.denx.de>; Mon, 30 Nov 2020 02:54:44 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x143.google.com with SMTP id z10so1368065ilu.3 for <u-boot@lists.denx.de>; Sun, 29 Nov 2020 17:54:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JX4YdQ3yzubJbCcgKlKK3scHLcCY6XGmdyTcwhuNStM=; b=KAfYvycnkuvv5eQ4mvRa4BCv3jpp0qHY2k6QgZJEvVF4PTrc8F845koEakcMYvgezM 3s5+Kuj222+iD1v0NFgzs+oia4sVkgFePykvo2OIG1PhZub3ytBjE3G2ZiZ9RPMONxo5 Cd9wNL2LU4PvjfLNHlJ96OXUYVCtNPMJxmaQQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JX4YdQ3yzubJbCcgKlKK3scHLcCY6XGmdyTcwhuNStM=; b=eiXK0oyOFOIFLdvp3gETSJNg2qP0jl3P93g02/Se/GwuzUxDG5JEznM0GBJuYDs4JD Kw2dC8PvhnxNHNb28cCU0WZSVYMJSL3fqoT6DFhJaJ3M1FTOZV3Y5ReEzY3dwSBwCIgX tiZdveZOxWodUaw2TzQ+/oDgtE1K89p7TRp5W1UQS1B/hYf7ahkhmNMMKVf6ELA4Gfk/ 85CqOAXGY1agW+Q+l9HpZvbxruKvM7QUpfa4EKbb/nlh2amoyX5SdV3oMHedQMjBe3LJ DqmoCZ1H+HYsriytE8Jr0mbbK/STwroLlFumpnjgidpunOU80c3SDTM9fj/xTUStwoNn mTJQ== X-Gm-Message-State: AOAM531vO9/iglsE1mj2pXallIPjYXimSYP4C+U8MxLOhTnHQbcYaqFb /nwtb4M+qXLgcgoZ7bmD3ze5u0p4MlrvJw== X-Google-Smtp-Source: ABdhPJwqRr/OIERxUSxKhPng9uRa/v8NJIs4iOhGCuwPeMGT+jhAcfWrS3oymCcnMKk9BhyOuMeELw== X-Received: by 2002:a05:6e02:f14:: with SMTP id x20mr5419397ilj.94.1606701283497; Sun, 29 Nov 2020 17:54:43 -0800 (PST) Received: from localhost.localdomain (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id q5sm6543341ilg.62.2020.11.29.17.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Nov 2020 17:54:43 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Simon Glass <sjg@chromium.org>, Marek Vasut <marex@denx.de>, Pavel Herrmann <morpheus.ibis@gmail.com> Subject: [PATCH 08/27] dm: Fix return value in dev_read_alias_seq() Date: Sun, 29 Nov 2020 18:53:43 -0700 Message-Id: <20201130015402.2328621-7-sjg@chromium.org> X-Mailer: git-send-email 2.29.2.454.gaff20da3a2-goog In-Reply-To: <20201130015402.2328621-1-sjg@chromium.org> References: <20201130015402.2328621-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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: <https://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> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
dm: Change the way sequence numbers are implemented
|
expand
|
diff --git a/drivers/core/read.c b/drivers/core/read.c index 076125824ca..fc74d64814f 100644 --- a/drivers/core/read.c +++ b/drivers/core/read.c @@ -281,8 +281,10 @@ int dev_read_alias_seq(const struct udevice *dev, int *devnump) if (ofnode_is_np(node)) { ret = of_alias_get_id(ofnode_to_np(node), uc_name); - if (ret >= 0) + if (ret >= 0) { *devnump = ret; + ret = 0; + } } else { #if CONFIG_IS_ENABLED(OF_CONTROL) ret = fdtdec_get_alias_seq(gd->fdt_blob, uc_name,
This should return 0 on success but currently does not. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org> --- drivers/core/read.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)