Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4536350imw; Tue, 12 Jul 2022 09:35:18 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uXf/lwZeb5eBk0q0sttZA7B7H48RnM/rifEbME353H+pRGn0mzNvOM2EobQswQbNA+BpOs X-Received: by 2002:a05:6402:149:b0:431:7dde:9b59 with SMTP id s9-20020a056402014900b004317dde9b59mr33326475edu.339.1657643718560; Tue, 12 Jul 2022 09:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657643718; cv=none; d=google.com; s=arc-20160816; b=eJU44zhPr4oa9GyDKh4QEPR1LwzckeSoHzj1y9OaQ98xQ098QQ13ZmqHVo8L7NDHTj RERxxJcFDa+hvnPsj10xmXJUc8Xit3HFCmD9fMH/icDuM8WjzBy64q2hjLramncfnzL8 5Js5vxM4ZK/7PuueVnGDCpt78BPO6cKHWSpW+jdQk3hbDnxgBWgbva+5mgpjepC2bRrU CQQisHAtatShgt6bHn71kF5raTFu6gelVK1bjZxH/JZ5MMl1UzelvqSPuysz9LXBe2QX tYnd6ttNiWiW48cAEGz7GwQbYQzn0m11I7wdv0tPP+busgWYGWdtYQ4kDn6VpqInKHSL J45Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Noa21biYShxdCO0+5k8GjeB31+A2tADbHyxeUmcBaPQ=; b=rd8iN9DoJhzFqLz+rjppGyCFOGEO+J+xHweXI68Ws9yKQ0aEugzl8F0RhPr1fZfZ6j DQ8JW+yh4T1zZy/VW7/fm1jp0O6RBBHcwCYDQIL5t+Sq7fMO0+U4fkoK++gY6TwPIq6B AHu0aywdNRY4Wd50wJZZXpnCF8r4fQX+9qGTpX7pUTF8IVyp+Lt1JhJMCu7DewXyXM09 dbzw/dngLIFDglSH6W3fMU8ZmXFhp2rVnSpaZbr+Hoi2ZKiarrX85tPxjCsLleUHS3qZ z8O/mJ4/FIQBhnEzhDIG7S01gkruUqmRpFFBqZ0X2PndaA5cIwSEnJv2Hwn8S6SXKoln 8IfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=mAbVR09U; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z19-20020a05640240d300b0043a923324c1si16876233edb.11.2022.07.12.09.34.52; Tue, 12 Jul 2022 09:35:18 -0700 (PDT) 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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=mAbVR09U; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233044AbiGLQAB (ORCPT + 99 others); Tue, 12 Jul 2022 12:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbiGLQAA (ORCPT ); Tue, 12 Jul 2022 12:00:00 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A586FBFADF; Tue, 12 Jul 2022 08:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Noa21biYShxdCO0+5k8GjeB31+A2tADbHyxeUmcBaPQ=; b=mAbVR09UJuICbVejnpNHu9anjz 4xDWtKlUnRWqYzVFx1kiXoDrvTHfX2JSZneJq4xmpZ54lAoq+TRnohAU3bT7+zCN2tcU3ygzA+qxr ozPCs+zDx4P3HPpeCG+c5Bz7sYqBu7Ys0dfcYjPn+B5/MvobDiT2Z41ifMa05Fk14LMuJ+WswZEwz M2Ajzx5wML8Ktabp6d3m6y20QNp6mt3WY4Ei1FH7toHS2JD08Li3Gd8WvICWmvrXRGyp3Iwah6c95 fagtxJwzXPtJ3aeYFPjLVqnGdf9VYU8E19apu6e3llTFWqOEemIg1GGr+5xnZIb1UklfA9xTc9Z/B 4rAhcdmw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33306) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oBIIk-00032t-Mn; Tue, 12 Jul 2022 16:59:54 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1oBIIj-0004oF-5z; Tue, 12 Jul 2022 16:59:53 +0100 Date: Tue, 12 Jul 2022 16:59:53 +0100 From: "Russell King (Oracle)" To: Krzysztof Kozlowski Cc: Sean Anderson , Heiner Kallweit , netdev@vger.kernel.org, Jakub Kicinski , Madalin Bucur , "David S . Miller" , Paolo Abeni , Ioana Ciornei , linux-kernel@vger.kernel.org, Eric Dumazet , Andrew Lunn , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org Subject: Re: [RFC PATCH net-next 2/9] dt-bindings: net: Expand pcs-handle to an array Message-ID: References: <20220711160519.741990-1-sean.anderson@seco.com> <20220711160519.741990-3-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) 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_NONE, T_SCC_BODY_TEXT_LINE 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 On Tue, Jul 12, 2022 at 05:18:05PM +0200, Krzysztof Kozlowski wrote: > On 12/07/2022 17:06, Sean Anderson wrote: > > Hi Krzysztof, > > > > On 7/12/22 4:51 AM, Krzysztof Kozlowski wrote: > >> On 11/07/2022 18:05, Sean Anderson wrote: > >>> This allows multiple phandles to be specified for pcs-handle, such as > >>> when multiple PCSs are present for a single MAC. To differentiate > >>> between them, also add a pcs-names property. > >>> > >>> Signed-off-by: Sean Anderson > >>> --- > >>> > >>> .../devicetree/bindings/net/ethernet-controller.yaml | 7 ++++++- > >>> 1 file changed, 6 insertions(+), 1 deletion(-) > >>> > >>> diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml > >>> index 4f15463611f8..c033e536f869 100644 > >>> --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml > >>> +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml > >>> @@ -107,11 +107,16 @@ properties: > >>> $ref: "#/properties/phy-connection-type" > >>> > >>> pcs-handle: > >>> - $ref: /schemas/types.yaml#/definitions/phandle > >>> + $ref: /schemas/types.yaml#/definitions/phandle-array > >>> description: > >>> Specifies a reference to a node representing a PCS PHY device on a MDIO > >>> bus to link with an external PHY (phy-handle) if exists. > >> > >> You need to update all existing bindings and add maxItems:1. > >> > >>> > >>> + pcs-names: > >> > >> To be consistent with other properties this should be "pcs-handle-names" > >> and the other "pcs-handles"... and then actually drop the "handle". > > > > Sorry, I'm not sure what you're recommending in the second half here. > > I would be happy to see consistent naming with other xxxs/xxx-names > properties, therefore I recommend to: > 1. deprecate pcs-handle because anyway the naming is encoding DT spec > into the name ("handle"), > 2. add new property 'pcs' or 'pcss' (the 's' at the end like clocks but > maybe that's too much) with pcs-names. > > However before implementing this, please wait for more feedback. Maybe > Rob or net folks will have different opinions. We decided on "pcs-handle" for PCS for several drivers, to be consistent with the situation for network PHYs (which are "phy-handle", settled on after we also had "phy" and "phy-device" and decided to deprecate these two. Surely we should have consistency within the net code - so either "phy" and "pcs" or "phy-handle" and "pcs-handle" but not a mixture of both? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!