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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79AC3C54E94 for ; Wed, 25 Jan 2023 14:11:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235445AbjAYOLU (ORCPT ); Wed, 25 Jan 2023 09:11:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234833AbjAYOLS (ORCPT ); Wed, 25 Jan 2023 09:11:18 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9DD0045F7C; Wed, 25 Jan 2023 06:11:17 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 36F384B3; Wed, 25 Jan 2023 06:11:59 -0800 (PST) Received: from bogus (unknown [10.57.77.84]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4BEFD3F71E; Wed, 25 Jan 2023 06:11:16 -0800 (PST) Date: Wed, 25 Jan 2023 14:11:13 +0000 From: Sudeep Holla To: Cristian Marussi Cc: Rob Herring , Sudeep Holla , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: firmware: arm,scmi: Restrict protocol child node properties Message-ID: <20230125141113.kkbowopusikuogx6@bogus> References: <20230124222023.316089-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 25, 2023 at 01:43:48PM +0000, Cristian Marussi wrote: > so now that the catch-all protocol@ patternProperty is gone in favour > of the 'protocol-node' definition and $refs, does that mean that any > current and future SCMI officially published protocol has to be > added to the above explicit protocol list, even though it does not > have any special additional required property beside reg ? > (like protocol@18 above...) > If there are no consumers, should we just not add and deal with it entirely within the kernel. I know we rely today on presence of node before we initialise, but hey we have exception for system power protocol for other reasons, why not add this one too. In short we shouldn't have to add a node if there are no consumers. It was one of the topic of discussion initially when SCMI binding was added and they exist only for the consumers otherwise we don't need it as everything is discoverable from the interface. -- Regards, Sudeep