Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3525359pxb; Mon, 24 Jan 2022 11:24:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNQ9rBc1vRl6jMTvplaFFEH83mOuhb+Rl3X1+AzCIx+LSNh37Uv5OZ9rJZ2/C/BAVXb7on X-Received: by 2002:a05:6a00:1745:b0:4c8:b982:d500 with SMTP id j5-20020a056a00174500b004c8b982d500mr7787224pfc.59.1643052168420; Mon, 24 Jan 2022 11:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643052168; cv=none; d=google.com; s=arc-20160816; b=q7kGVhrbSddmWhOX4XjeNyaI0gOOgjSWaqQontQllz9G5UL5lMFIVTRnjD4gtHA2qK KbzrvVPkmTlBMGqq1fwlUKLwJsRBKsxc5ssrx92L1doR9fr8zDhm27LYwAoU7QeikABi zV0AY0VqOEtEH6K/ul5Us8qEkopQD0u+PDs41/tCkzaCOs246TsKqCL+nDdY726SQ5xA N2D4dSWaJV7GAUi5cZpjrGHy27pnxUhojuyOvV9eSLPbVUbPH11TbCtz+FJPU89JA99t XCa6qjMGXxTscEqBZ4WZM0BdC8YE6AOz95iWTQbRnCah94GIuIKcovqrLHkdtKO2c8Uk LqBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=F+D29YanAKs3L1gHjOyyt+m20QdvdI5oLFA9QyczrS8=; b=XRLZSrAwzGRyi8zTFUhRSKfToed9Z5B44ew+5dvwkCxiLUKqZsG84OWptZRCJ0LhIG w50nex3w5Q94v3x7wTNE64GvMLIiCvYQqmKx2yKWRA/Iz5QHrDxqVpDyRpec12mm8dfq WJStHorQHpF3baHlf1B6IbWpHlJCnE54QPBQ2jXiVQ/QvrXLbQyQBti7K6oFkk/lV4QE 1xRCUQBzhWjkEBNJqGXWx7IaP/+QB8bQHa/92aGqcnhRNUmZ3vxhQTlBO9ypmwrgzvzY wJXn7oh8psKa6Ye+B+L5HyLE7yo+LK50SVtLuly6ybLMLSNbM6HJ4dBdzYlLhjqm7iae 2jBw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c137si12994644pfc.159.2022.01.24.11.22.35; Mon, 24 Jan 2022 11:22:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236386AbiAXOYC (ORCPT + 99 others); Mon, 24 Jan 2022 09:24:02 -0500 Received: from mail-ot1-f54.google.com ([209.85.210.54]:41949 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233777AbiAXOYA (ORCPT ); Mon, 24 Jan 2022 09:24:00 -0500 Received: by mail-ot1-f54.google.com with SMTP id b12-20020a9d754c000000b0059eb935359eso6148352otl.8; Mon, 24 Jan 2022 06:24:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=F+D29YanAKs3L1gHjOyyt+m20QdvdI5oLFA9QyczrS8=; b=zNAx1K4PLjzAPWYTEmZMyTMPWXE+LMNy06fBI7F5PaZuFQnob80KMTfK+6UiXHeQVf cbAY7E8ihalDr+qNuzYHELLizgglHH+K+MrfB88K35an17Y48lWul7jc5eykSAJ2c2D8 iOBm2AIRDDcrOZlptFZlxRDdZc8j0mhmCXp631MzaZagJYoDDMRI6hN0OaxXwCtbZKeC 8QkuMMAHE/NAryexMBld1YvdmzZRwgT6IyJgTutJXupNeb1Av4xXb9s9OmBZf7rWHGcb HfSPA/mwtFfvnWC+meoUPQd8Stbsd0OXIgZs9ieH7niZEfVoMUo0HloTEAGdmDnbMXmD HIIA== X-Gm-Message-State: AOAM5305ygzBaJf3jJctwz+n+Hgsa1sfNQbNwIXq5/BEB+AMvZn9ADeF rn6QNnXxx0RB1gqrenBadg== X-Received: by 2002:a9d:5908:: with SMTP id t8mr11603234oth.186.1643034240120; Mon, 24 Jan 2022 06:24:00 -0800 (PST) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id m26sm910983ooa.36.2022.01.24.06.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 06:23:59 -0800 (PST) Received: (nullmailer pid 3749184 invoked by uid 1000); Mon, 24 Jan 2022 14:23:58 -0000 Date: Mon, 24 Jan 2022 08:23:58 -0600 From: Rob Herring To: Michael Walle Cc: linux-kernel@vger.kernel.org, Frank Rowand , Rob Herring , devicetree@vger.kernel.org Subject: Re: [PATCH v3 3/3] of: base: add of_parse_phandle_with_optional_args() Message-ID: References: <20220118173504.2867523-1-michael@walle.cc> <20220118173504.2867523-4-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220118173504.2867523-4-michael@walle.cc> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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