Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4469353imw; Tue, 12 Jul 2022 08:27:29 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v1JF9lIflK+oLj9S0PrrcA5frqeaT0+5XcXspBjNLHRVoxC6junklWpeRZkYElgAHsf4FO X-Received: by 2002:a05:6402:3314:b0:43a:47e6:3f1 with SMTP id e20-20020a056402331400b0043a47e603f1mr32239620eda.270.1657639649257; Tue, 12 Jul 2022 08:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657639649; cv=none; d=google.com; s=arc-20160816; b=zR0FS1kGnQHzJcFUskYeLY3pc9pSOpI6lRENTRjgcbiNWZgFwg9ydHf2iiIZuVxxKd VF+P0AAuYY/reu9kFpZouRzvwg1yJLz7MW9rA4fQCTHOFw2dI53Y7DrnWh8PKEarPFuG UALG7K5tqRinRzAcz+dLZFQ3r2Gbi8VUqIXqvPKiJ2PW0QWMfxuuNCTBv3DteihkeSXJ j1CVoNCIWdn1f5PQxtjDPOWisvmfi/C8xDwXRf1e0LnarZn+ODPmCq9lnlAxBmLnvE/1 Tho4KKU1IheR2Hdy/DogfO90Q3neJJ3iKAC7hO7onVokNGol0cXq/hHmmMGk6bZUFNWU yn6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Tj5Gg27gp6guU9o9CDqxeuyaEnEIyrvYSMIuKpk5DD8=; b=Kx1UBdWZrWA+yDTW5zaxbyP4EwW7g2iI0Gm5ZaXUmO7pmobbNfvCqri1BY3BbZ4euN SdAVm/3ir1ujv11wq7sjHDSDtPJ/FXXa6dWv1yqyLaMeHiq4tJeq6u/D7gv2tFfCzBxm ufkOuAZt11dfb5jZpPySipmbRf9Q/ennSJYO7vxwubcQxmJutrM+7ObauJBZGsIqFwQY 3wBEBphEIkHtmk7hQdQmsY4FpN56HalgiF/AHOLEipzVW4zPjxEZmWVjFQ8FH2AAFo9Y mN9F+idABpCWygxP77rWF43sVq1YJeH2YZpJEsQqLwHyiVdNRK/vtzD1+tKfNIXn4Cys f5WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tGqKNetC; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce13-20020a170906b24d00b00722e89ba02bsi12822797ejb.736.2022.07.12.08.27.03; Tue, 12 Jul 2022 08:27:29 -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=pass header.i=@linaro.org header.s=google header.b=tGqKNetC; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233842AbiGLPVa (ORCPT + 99 others); Tue, 12 Jul 2022 11:21:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233153AbiGLPVH (ORCPT ); Tue, 12 Jul 2022 11:21:07 -0400 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F3D94F191 for ; Tue, 12 Jul 2022 08:18:14 -0700 (PDT) Received: by mail-lj1-x236.google.com with SMTP id u14so10268623ljh.2 for ; Tue, 12 Jul 2022 08:18:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=Tj5Gg27gp6guU9o9CDqxeuyaEnEIyrvYSMIuKpk5DD8=; b=tGqKNetCeWXzqGSSNavFzF6GgOnaP8uE2YFx+VXS9WdGV5+5ap7lYe4ilTL/1ca+f+ ouoKcLg2D+XuplmIZ64Lz27n+Eh3j2Ya6E+NSRFRl3bnp1leC9bzqMmv7HUj60q49LET rIvE/HVfZH7a4dyRgaENaiFzB5AsCD1r63XXMdITydVZRxTVBgbNgWAB2rO9AxLLVuaC AzOFcDK+tXjAOimM2VbjoHL+V5TK3gLBOqx+O79eaba0f8hHPr9JyQA8CWPolOaN8rpT 6B9s+95UGjNRSOzF5Y3dhERiewU2/lC5qnFS8oZu/sLrVVw+82sAAOSBpGrbvWYEnvPL 5OrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=Tj5Gg27gp6guU9o9CDqxeuyaEnEIyrvYSMIuKpk5DD8=; b=dq8BDWYYoL0bI/i2Q+ZEmLTygYObN7tzpbgwKHzYCRsSKdUtysRCH0h6UZ4mKr8v/R nesw3kx6dhPfce+5J6/iGz5+wtYq8uuh/6NNMRthLRKUcIxifMU6uDP44y+9ONXNl/rf 7AyqiJ62R2rmEOuSGg+ItU3hzxbiObaRLprbmUNJ2uoBh0+n/h1PSA1d1y+iBSP1acc0 oNopt9/5Xp7QSVx4yQcgZd0/9aMcGvlUa6n8jjbomAmY2JtDzFhBUdyWOJCsxLM3zR9Y AAaehLMnX0ni6J6E7t69hMiXyLNN8pD0zEI1btm/LtOCJcc2qx8SKpi1hhdXKjfYFuYP yjIQ== X-Gm-Message-State: AJIora9c4PmfsTvoJ+pSdKqAqykOhstW8y+AZXx+AShAVy3bON0Hyu0/ MA2VNoIJ0XtXhgosabdz7Vx5hQ== X-Received: by 2002:a2e:9547:0:b0:24f:2e31:6078 with SMTP id t7-20020a2e9547000000b0024f2e316078mr12469910ljh.102.1657639093026; Tue, 12 Jul 2022 08:18:13 -0700 (PDT) Received: from [10.0.0.8] (fwa5da9-171.bb.online.no. [88.93.169.171]) by smtp.gmail.com with ESMTPSA id o28-20020a198c1c000000b00482bb812713sm2232708lfd.94.2022.07.12.08.18.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 12 Jul 2022 08:18:12 -0700 (PDT) Message-ID: Date: Tue, 12 Jul 2022 17:18:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [RFC PATCH net-next 2/9] dt-bindings: net: Expand pcs-handle to an array Content-Language: en-US To: Sean Anderson , Heiner Kallweit , Russell King , netdev@vger.kernel.org Cc: 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 References: <20220711160519.741990-1-sean.anderson@seco.com> <20220711160519.741990-3-sean.anderson@seco.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 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,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 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. Best regards, Krzysztof