Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1193915rwb; Fri, 18 Nov 2022 14:21:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf5/u4g07zB3COt3wiWcJmnc6IefXchI9TIeItsAy4/0JZXtjT9RiSUd17U++wZY0OJANAl+ X-Received: by 2002:a17:902:9343:b0:188:b7d6:46bf with SMTP id g3-20020a170902934300b00188b7d646bfmr1468233plp.111.1668810092831; Fri, 18 Nov 2022 14:21:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668810092; cv=none; d=google.com; s=arc-20160816; b=iXEcN7s2/bhmZADUcWAXpT2VR5x9YWTzPpgyILVUBq6xApS2Goy7lf1h2pJ/6XKBQZ mcd9v9NsWnzIOMo+Vkrl25v0OSBw0kLXevx8fo7XSmmxowdxWi2x9zzCaTZx0ebDBqXZ twceyIgPYfhu8dro4Dh4XuMZmVaPkc/JfVClbkXNNB0XA9LytnDPg4/bjvlpV3sYlP2u VbO47uNbsuCor+E6aZf1jjQw3Ca+grkX6ptRAToqbKO2JikTpbAcnwI0EedPuMZWOwpa PolAIB7z8sm66VcS+j2ZZ5A0wlSkKN5UExAdNxmW8EF4aY0lQ0S8lDpE69BhRBdb1CRY oBEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=jhsoQZGuusQB+cmhOr0OjTamtUUcvXLkhCvJFGQv/dM=; b=bnr5+SbauUwFeqXQltuhUaTJNiu6KCCGsDoR0VYUDFPCzmOKl9KRUqZ2zaJJUHvoPb SkPIZpxsst81aYyXZHOJnR0kRqnm+s8jvodt0OXUljFQVR2Ousaqxr3ZBbqkF3ohViLk NQZtB+iqehlM35eatQ66lc7WLga8IZyjcRcuTnveb2LV/llCdWvEZZH6ypebU5C/N1S3 JW9cpsL56qD/GomhfK9Z2SyoEPStLJPRkZEXCSghQSVHEVkG/Z88yrpC8k/SuVWhMUbu hVYUnTbj/jMjENOHUVUbditR2143uGRH4ujJBC5rCmkBT0WNVwl0aMAYOZ1NAa2MeRS8 6ugQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=dyqmJDrh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a192-20020a6390c9000000b00476e75465b4si4628193pge.65.2022.11.18.14.21.20; Fri, 18 Nov 2022 14:21:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2022082101 header.b=dyqmJDrh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=walle.cc Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230043AbiKRVb7 (ORCPT + 90 others); Fri, 18 Nov 2022 16:31:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbiKRVb6 (ORCPT ); Fri, 18 Nov 2022 16:31:58 -0500 X-Greylist: delayed 9630 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 18 Nov 2022 13:31:57 PST Received: from mail.3ffe.de (0001.3ffe.de [159.69.201.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 508D877222; Fri, 18 Nov 2022 13:31:57 -0800 (PST) Received: from 3ffe.de (0001.3ffe.de [IPv6:2a01:4f8:c0c:9d57::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.3ffe.de (Postfix) with ESMTPSA id AB6681382; Fri, 18 Nov 2022 22:31:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2022082101; t=1668807115; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=jhsoQZGuusQB+cmhOr0OjTamtUUcvXLkhCvJFGQv/dM=; b=dyqmJDrhlD49WDtt67kx3e41wuqADtomYJdL3P9JWqaY9HodYZSEwm66ELysqQdEuRFCGm d4gR1HQJnixVwcD8QqsnKVeQz4wJ1usztknklJQEZiFpqBbBOLrtVlhoB/SOhHIdu4KQex /dhB5zAMYT2ch4k5OQWd261mx0G15jDeUkm0hWn6hZ0DFgZNwNS19KS9VuztfAw6hIrHf+ NocsD8ySWtxr72mPW+uWo5Y4KHVihNz66+5MD+z+3lwI40i5guJCIoKng3ni67NSQeXdG5 ppwKu3g5rV8hu9RKpiINMWfGsseo3Hy+TO6oCRTGHcWlxMQ8yvOwOoij2W1OIg== MIME-Version: 1.0 Date: Fri, 18 Nov 2022 22:31:55 +0100 From: Michael Walle To: Jonathan Corbet , Srinivas Kandagatla , Miquel Raynal , Rob Herring , Frank Rowand Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Rob Herring Subject: Re: [PATCH v3 02/18] of: base: add of_parse_phandle_with_optional_args() In-Reply-To: <20221118185118.1190044-3-michael@walle.cc> References: <20221118185118.1190044-1-michael@walle.cc> <20221118185118.1190044-3-michael@walle.cc> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <8b976cf546bad3aa159a6f05cd3c15d1@walle.cc> X-Sender: michael@walle.cc Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 2022-11-18 19:51, schrieb Michael Walle: > 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. I've just noticed that this isn't enough. We also need to fix the parsing in drivers/of/property.c, otherwise spurious device links will be created because the phandle argument is treated as a phandle itself. -michael