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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3C4F3C433F5 for ; Wed, 24 Nov 2021 22:23:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EE1B3812DD; Wed, 24 Nov 2021 23:23:03 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (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=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="aKsLmGNj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF11982FDE; Wed, 24 Nov 2021 23:22:38 +0100 (CET) Received: from mail-ua1-x933.google.com (mail-ua1-x933.google.com [IPv6:2607:f8b0:4864:20::933]) (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 5936983395 for ; Wed, 24 Nov 2021 23:22:30 +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@google.com Received: by mail-ua1-x933.google.com with SMTP id az37so8205540uab.13 for ; Wed, 24 Nov 2021 14:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:from:in-reply-to:references:date:message-id :subject:to:cc; bh=NxwnUSj7VMHxZu9EZKoQE6eNvaF9q5cvLhzvV9aliQ8=; b=aKsLmGNjKmIK/6mb1KS2G9jN5qlKEKnhnr1g0qLAfWrCULCNXuv7knYjrHa8b2m7Iv EtsWjcy35neCETT0tiKAYtYpQoh+3YbbvLaQHYEgKXEFavvQJfM2Gi2P4C4mWVxQ1tf2 YEZIJ+BJShzIDBRat6UGda9NL5n90pY+9iNb8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:sender:from:in-reply-to:references :date:message-id:subject:to:cc; bh=NxwnUSj7VMHxZu9EZKoQE6eNvaF9q5cvLhzvV9aliQ8=; b=TvjcgGhCfg3n2FLRT+s+QQOLOE/zCKMIRx6BmayYjM3Qh/B+BxMSFXxH6ZHHcrNs5w sBW6Y9wZMufOvZLNAU+ox/S9IuPjRRJd9ZTU23Vni4s9KTUwUfHOOL6q8k+c2FVY/kS9 Gfb2xquUrq2tX13EgHcFIpd7FHDcSSQ7ODIzNHJbu2bho83QJ1yRRtlEcnuEbQ9G3L6Z Sg9PxLfHFLimDo8xb99+BkyJ6yYePOGs2pwyTJ63hQEhEMbfpbNJRYs7QQAnvJO9R+NJ 1sFPqgO6QcSC3kOm64kfxeVyqjX223tfwQ81hRc9wa6Wg4jglGCTXbnGqdX/CPKsKFBE ZBgw== X-Gm-Message-State: AOAM5322VXJS9wZxlL0BssatzRPfVDFFA7889HY3pN1Iw0DqsY9hRZs3 XVK85X1fWuA0TYKlUJLemXVks8Y4Wa6cIqaBBmwJQg== X-Google-Smtp-Source: ABdhPJxj1Ysx1xoVfm8Yb4rbF2vvefZ0MhsKkXlTdfI2XpQr+29lT+JB9jcdla+pmSsKesShVSfbWPj8LVLEBLW1mdg= X-Received: by 2002:a67:e109:: with SMTP id d9mr741342vsl.19.1637792548923; Wed, 24 Nov 2021 14:22:28 -0800 (PST) Received: from 480794996271 named unknown by gmailapi.google.com with HTTPREST; Wed, 24 Nov 2021 17:22:27 -0500 MIME-Version: 1.0 From: Simon Glass In-Reply-To: References: <20211023232635.9195-1-sjg@chromium.org> <20211023232635.9195-12-sjg@chromium.org> Date: Wed, 24 Nov 2021 17:22:27 -0500 X-Google-Sender-Auth: xNb8yK21OYyNwr2EvN5F-4InB2w Message-ID: Subject: Re: [PATCH v2 13/41] dm: core: Add a way to obtain a string list To: Simon Glass Cc: U-Boot Mailing List , Michal Simek , Heinrich Schuchardt , Tom Rini , Daniel Schwierzeck , Steffen Jaeckel , =?UTF-8?B?TWFyZWsgQmVow7pu?= , Lukas Auer , Dennis Gilmore , Marek Vasut , Pavel Herrmann , Ilias Apalodimas Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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 Ilias, On Tue, 26 Oct 2021 at 13:21, Ilias Apalodimas wrote: > > On Sun, 24 Oct 2021 at 02:26, Simon Glass wrote: > > > > At present we support reading a string list a string at a time. Apart > > from being inefficient, this makes it impossible to separate reading of > > the devicetree into the of_to_plat() method where it belongs, since any > > code which needs access to the string must read it from the devicetree. > > > > Add a function which returns the string property as an array of pointers > > to the strings, which is easily used by clients. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v1) > > > > drivers/core/ofnode.c | 26 ++++++++++++++++++++++++++ > > drivers/core/read.c | 6 ++++++ > > include/dm/ofnode.h | 20 ++++++++++++++++++++ > > include/dm/read.h | 28 ++++++++++++++++++++++++++++ > > test/dm/ofnode.c | 20 ++++++++++++++++++++ > > 5 files changed, 100 insertions(+) > > Applied to u-boot-dm/next, thanks!