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 0CC74C433F5 for ; Thu, 30 Sep 2021 04:13:25 +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 63567617E4 for ; Thu, 30 Sep 2021 04:13:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 63567617E4 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 A2F1981F0B; Thu, 30 Sep 2021 06:13:19 +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="C+Ys7hMu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E415680F9D; Thu, 30 Sep 2021 06:10:09 +0200 (CEST) Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) (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 86C0180F1A for ; Thu, 30 Sep 2021 06:10:04 +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-oi1-x233.google.com with SMTP id s69so5643505oie.13 for ; Wed, 29 Sep 2021 21:10:04 -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=zydAs++AbQp7sugYanZAewRcT9m2Xaq1PtGtXfBM9Iw=; b=C+Ys7hMuruig8Ft103di0Sz7q6FtVgY3O8PreiMT9fV45e8qHnxp1YOf1yXLLLY7f1 1llWOAp5lYlj0kU4QZRuL+XC8LWEYaFoWYp8KqgQRijr2w6aT1dbpbGgnICY1p/oa0h/ Xc8R5KAYDWjEKUn0J8jCYLyIYp1SlnSFj+bCQ= 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=zydAs++AbQp7sugYanZAewRcT9m2Xaq1PtGtXfBM9Iw=; b=y1hmHiED3pSSpOq4OI1iCc2PShh9MLSti+zb8DqxrTB006HQ0/luGXrL8EUEsZKlA1 HRZDqYeJkUk/YqKkm2oZsGSEHNhn04GFPY1M4jNYfJdgRfLPtUJTPr2m8bVGVuAk46bT QRe5wFyER6v2j5+1jsNxI6Ul4TebBsftdZYHQvOfOr679mPauXa47Rd/6/p8YEbCNHWJ rds9O0j//Y7hb+9eQMw4ONW8N6ZjK1APoQRhTu56wVJba8v9uDEJY/SJS+2CEt/gnrpr sF5XXN0Q5/ITaUF0lX5aD0/bYYLYtTXynIC0O0izBIJOo5YRHjy6PMvMON5FmVeb+ef0 Digg== X-Gm-Message-State: AOAM533ySfEJfizs8pQ+JBMgj/cNbxEIcIZlEsunVu7vUCPArpXV6a/M tdaechkU9xxaxaWciMRbVwWVHocaw5TJx+rAo/gwuQ== X-Google-Smtp-Source: ABdhPJwbKXMpKSf/clrXGpx6V5HXotIIVhUGNOtCRND0NyCFjn415T8NnvR6m/2KnmG0nEJ+v4LXf+N3etPHlj0IA18= X-Received: by 2002:a05:6808:309e:: with SMTP id bl30mr1014570oib.81.1632975002983; Wed, 29 Sep 2021 21:10:02 -0700 (PDT) MIME-Version: 1.0 References: <20210912031516.24885-1-bmeng.cn@gmail.com> <20210912031516.24885-5-bmeng.cn@gmail.com> In-Reply-To: <20210912031516.24885-5-bmeng.cn@gmail.com> From: Simon Glass Date: Wed, 29 Sep 2021 22:09:04 -0600 Message-ID: Subject: Re: [PATCH 5/9] dm: core: Add a new API devfdt_get_addr_index_ptr() To: Bin Meng Cc: Rick Chen , Leo Yu-Chi Liang , 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 Hi Bin, On Sat, 11 Sept 2021 at 21:15, Bin Meng wrote: > > At present there is only devfdt_get_addr_ptr() which only returns > the first pair in the 'reg' property. Add a new API > devfdt_get_addr_index_ptr() to return the indexed pointer. > > Signed-off-by: Bin Meng > --- > > drivers/core/fdtaddr.c | 11 ++++++++--- > include/dm/fdtaddr.h | 12 ++++++++++++ > 2 files changed, 20 insertions(+), 3 deletions(-) Please do update the tests for this new function.