[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Ye62fhOgaojt6Uqj@robh.at.kernel.org>
Date: Mon, 24 Jan 2022 08:23:58 -0600
From: Rob Herring <robh@...nel.org>
To: Michael Walle <michael@...le.cc>
Cc: linux-kernel@...r.kernel.org,
Frank Rowand <frowand.list@...il.com>,
Rob Herring <robh+dt@...nel.org>, devicetree@...r.kernel.org
Subject: Re: [PATCH v3 3/3] of: base: add
of_parse_phandle_with_optional_args()
On Tue, 18 Jan 2022 18:35:04 +0100, Michael Walle wrote:
> Add a new variant of the of_parse_phandle_with_args() which treats the
> cells name as optional. If it's missing, it is assumed that the phandle
> has no arguments.
>
> Up until now, a nvmem node didn't have any arguments, so all the device
> trees haven't any '#*-cells' property. But there is a need for an
> additional argument for the phandle, for which we need a '#*-cells'
> property. Therefore, we need to support nvmem nodes with and without
> this property.
>
> Signed-off-by: Michael Walle <michael@...le.cc>
> ---
> changes since v2:
> - make index signed
> - add missing function parameter doc
>
> changes since v1:
> - new patch
>
> include/linux/of.h | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
>
Reviewed-by: Rob Herring <robh@...nel.org>
Powered by blists - more mailing lists