From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73FF9C433EF for ; Thu, 30 Sep 2021 04:14:59 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ECEEA613DA for ; Thu, 30 Sep 2021 04:14:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org ECEEA613DA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 86FAC82DC1; Thu, 30 Sep 2021 06:14:44 +0200 (CEST) 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="ikaNagVo"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4EA5A80D28; Thu, 30 Sep 2021 06:09:50 +0200 (CEST) Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) (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 7DC5080F6A for ; Thu, 30 Sep 2021 06:09:34 +0200 (CEST) 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@google.com Received: by mail-ot1-x32f.google.com with SMTP id 77-20020a9d0ed3000000b00546e10e6699so5677948otj.2 for ; Wed, 29 Sep 2021 21:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0qBOEL4NnnAXhPhIwuDkeNx4kev/N4ov/HZ1PRzZOg8=; b=ikaNagVobjSU4oMzYFHDa+OPrlhxoCs+54yizVJT5FgypO5hkIW6+0cVVP2gKoj2wN rLQl1+z7q72mM4w0Hyr3EA6Y7DoE7TXrvsLS3UARaJI+CvkHxY9V03UwbuXXNX+NtTGr gNEyCaVWZIsghz4pwG4PboGvnj8c8kBpmL/Io= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0qBOEL4NnnAXhPhIwuDkeNx4kev/N4ov/HZ1PRzZOg8=; b=EzXamDhA18yVSBP0kq45Qr3b6jhAm4PNj0S2cRoTR6oYOdh/S1QLHSJcjKdyWA32+K UotPT2qc/DEsviv9qH2hRVgX65tw1DH7UL4GmxhFbqecR+fDi7VFoKXf8FS2yErrDToC O9E+FIDEkWV7rOKZ4FrDodfIMFJetZrXnoZG8Xi2bbRK51uVPfCRIDdeWEQP2jhPwwRv IcF60jAmcM3StvMp0tIzcdkHt5hqyc0c0GjzO6dQ3FGirOil97TbNNKfzNQDP+0Yc9gl Ts8ns1vfSfyXBO7kSMFbS47nsc4EC7XrdCJVR0gpARRA0XWnn4KZIijwkchKmETc3N/o /W5A== X-Gm-Message-State: AOAM530AQpl+L56iC/muDZj7g3R1A9qXUtM38MI2yCxrLYmC2bGTFNb8 l/+QszaaPxv/jCAXiCCfnnzZsKCeDl6gsW03CJAzDGidoCo= X-Google-Smtp-Source: ABdhPJzSES3JePKAPgEpDhtJ1CgUJ6yMySB6rhaXYGigt2x8MfTG2erVRgHNr4oMlpdSSUnG9yRCmUa1gSXjIOaDXts= X-Received: by 2002:a05:6830:31a5:: with SMTP id q5mr3256882ots.191.1632974972672; Wed, 29 Sep 2021 21:09:32 -0700 (PDT) MIME-Version: 1.0 References: <20210903131625.2153838-1-thierry.reding@gmail.com> <20210903131625.2153838-2-thierry.reding@gmail.com> In-Reply-To: <20210903131625.2153838-2-thierry.reding@gmail.com> From: Simon Glass Date: Wed, 29 Sep 2021 22:09:18 -0600 Message-ID: Subject: Re: [PATCH 1/9] fdtdec: Allow using fdtdec_get_carveout() in loops To: Thierry Reding Cc: Tom Warren , U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Fri, 3 Sept 2021 at 07:16, Thierry Reding wrote: > > From: Thierry Reding > > In order make it possible to use fdtdec_get_carveout() in loops, return > FDT_ERR_NOTFOUND when the passed-in index exceeds the number of phandles > present in the given property. > > Signed-off-by: Thierry Reding > --- > lib/fdtdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass