Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp666865pxb; Fri, 14 Jan 2022 13:34:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYrbd4LjcDsUXey5rBhiza10FeleLru2G7lvmr2InFvtgHddWEalXP4U9p78XT1WZFWbNN X-Received: by 2002:a17:902:ee4c:b0:14a:436e:56d7 with SMTP id 12-20020a170902ee4c00b0014a436e56d7mr11075935plo.169.1642196050641; Fri, 14 Jan 2022 13:34:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642196050; cv=none; d=google.com; s=arc-20160816; b=BAh5uayCfKuVJV9n6voaaqAcMZPyRtV2BxFHDHjAqoA51f9vg451SGke2FXFnhah4B soiRtVA5lCIrx+sFsZy87aHv0fUwljN3foj7H+EFEf9eDTjelMJHb5JZ/DLhXhEAgS0O REiWZKdN35jQqhqm0RlFiDKHFgItrA3v1qpcIqLVQWUllmWv85IISn25soS8tUhXKW+q 4KFTBHinyDxNbetEfi2AVBBHNadrz9niuEtR4yTLqyWrCvanzRqoS7EHlJvCfdCkhE+7 jpXrWMbar0PvbVVCla0QG8ZEgf1B6KvG0AkunQiV35c0CC/Zc+Lju33wnZVKygS/ELJX 5j1w== 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=+ZMcnyq4Kk1QBLF/cyPIuwPjo5svsETQ8AvzdBLgmtY=; b=elwPJ7DpzKMcQO5O3MNfzybrhKt9MdZ8JxtVOcKmxy73JtHd/bnsKPr34h2VTXeJ0Q BRixquGDzy3gjQJKY3bX0WVGKUPhmRXt5lN2jkasAHmu+Y0FnTqZ8qTq8Bg+kpZbonr4 3Yf0hxtBbwY6dxs9+d7MxqppRMTImd+68PtY99YGBbHaSu/trsyej1iCC5Zi9Lb4WEhQ S8ktrDVrUNHakGqpePYT4bC4jsmzWPeyxQW1H36WcOjx+qknSRu4+QCW5psno/lpIc1U ZZRo6ArqxzNkks17kQ4ClOAs81rtibZt1T5hUXfRHzJ/WrJh8/sJXJaNlFKq22rgQpaV Bh7A== 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 l71si7043144pgd.205.2022.01.14.13.33.58; Fri, 14 Jan 2022 13:34:10 -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 S242080AbiANOul (ORCPT + 99 others); Fri, 14 Jan 2022 09:50:41 -0500 Received: from mail-ot1-f54.google.com ([209.85.210.54]:43785 "EHLO mail-ot1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242055AbiANOui (ORCPT ); Fri, 14 Jan 2022 09:50:38 -0500 Received: by mail-ot1-f54.google.com with SMTP id i5-20020a05683033e500b0057a369ac614so10270160otu.10; Fri, 14 Jan 2022 06:50:38 -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=+ZMcnyq4Kk1QBLF/cyPIuwPjo5svsETQ8AvzdBLgmtY=; b=KkQ8PbOh6Sk8cy/2W9jezFkvDNaaoj+cWe44KDt4WhFx6c/X+h42rSoR/sjhCwJ3ma mDkK3kMGAGfTzLye+/DTaLj5NoYnmYgPuDHLSI4bAYNPY9Ou+I5ypG8KIIkRiS+RVoiW SFe5NZrnV5aK4EOFywl+km0ovzopmQQ17OxYx606z2jnctIlanxWgYcyhxfX8mwSn5VX oXk6UpdGMM/8X6SyZVS8vytsfnHJoIQJfrlSZJIp5DQB6RND5QETdz5CV2qXgCCZ20rf UjJ9FIEJhdlcf3xsXtsCgXJii/ebZKSHPByLAA7Mpsr2sX3+UDBUWjAFtBVA7EaPtxKd Tq2Q== X-Gm-Message-State: AOAM531WT1s8QcC17M1BwFQ4lg4ux5+3ikZ5ehlw5yg+ACLVYLHAQkHd FSp0uH74JVCK9jrMZ1A5y7W5T7riDw== X-Received: by 2002:a9d:5549:: with SMTP id h9mr7150513oti.36.1642171837665; Fri, 14 Jan 2022 06:50:37 -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 r30sm1929838otv.48.2022.01.14.06.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jan 2022 06:50:36 -0800 (PST) Received: (nullmailer pid 1868117 invoked by uid 1000); Fri, 14 Jan 2022 14:50:35 -0000 Date: Fri, 14 Jan 2022 08:50:35 -0600 From: Rob Herring To: Michael Walle Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Frank Rowand Subject: Re: [PATCH v2 0/5] of: base: small cleanups Message-ID: References: <20220114120723.326268-1-michael@walle.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220114120723.326268-1-michael@walle.cc> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 14, 2022 at 01:07:18PM +0100, Michael Walle wrote: > This series is a result of the discussion in [1]. Rob suggested to convert > the index parameter to unsigned int and drop the check for negative values > and make them static inline. > > It will also introduce a new variant of the function, although it is unused > for now. They will be needed when nvmem phandles are modified to take > additional arguments and need to retain backwards compatibility with older > device trees. > > Finally, define of_property_read_u{8,16,32,64}_array() unconditionally, > these are the last ones, which were defined static inline and had an empty > stub if CONFIG_OF wasn't set. > > [1] https://lore.kernel.org/linux-devicetree/20211228142549.1275412-1-michael@walle.cc/ > > Michael Walle (5): > of: base: convert index to unsigned for of_parse_phandle() > of: base: make small of_parse_phandle() variants static inline > of: base: add of_parse_phandle_with_optional_args() > of: property: define of_property_read_u{8,16,32,64}_array() > unconditionally > of: property: use unsigned index for of_link_property() > > drivers/of/base.c | 137 +------------ > drivers/of/property.c | 27 ++- > include/linux/of.h | 446 +++++++++++++++++++++++++----------------- > 3 files changed, 294 insertions(+), 316 deletions(-) I've applied the series and plan to send for v5.17-rc1. Rob