Message ID | 20221102161512.53399-1-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp9182wru; Wed, 2 Nov 2022 09:24:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM428ZphJ/eTacHjXgdiyyEvTbn9JWMsKGC7ZIDrhRTv/dnSznJv3rIHxb1EOmcuVPz5oc4n X-Received: by 2002:a17:906:fe45:b0:791:9624:9e9f with SMTP id wz5-20020a170906fe4500b0079196249e9fmr24983751ejb.86.1667406259521; Wed, 02 Nov 2022 09:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667406259; cv=none; d=google.com; s=arc-20160816; b=gSvRsTeQgU/P5GSuCJQ4XTP3oxPrX56Huky573OXlE+Wv27mSR8e9eJt8UR5OWcRBy v1esuLPspB9juMCWFM/S7p0xY2eMg9SfW4DIEAbSl7EaDvaa+biXP9GgF06hJnrSo/Re EU6vQwJk4HSSaHnenFLsFICc2eCYLWiQy0lDT8U73Zb1wlMpi+oONcpODxOc8syqROK2 6aOnEibZpz+gcIJdjufn7MoNGI6kiDGLQsDOQiDxw2xgbcEsVT1bUursP74QR4wXKBmx EYrIl0jlsbj63ql4TVezyCcdsUnz8oeDCdAD4T8PGXOhE7MdhU681xL8rh6uzD+HtJCW bXtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=TcjKNQcJeWbJaypxypHYP0ACBt1JoRrh+USGvZK/Q14=; b=FHo1tPxJpYmcwTBYPhk9f2qOm/f/8Q/kWPHwH7rN0KvcA8EyAgZYpZrWnJAVO2NqIM 3ZQ5thkmvECfQDsyIvu8Zzvzqhj9Vr8WJAcPPJSkqVTirnXlRn+OiqzuOFRzqtKTPNs5 xl5HI8fWYS4JNgYL5g/+yb/C9bBozZBp0QhFwVQkuXre0EjbwsAC75TKIKR/3n1mIpmE 03953WYL0tAhH5L4n84HCoArurIas7yqtthpwLbeP3OIDkDnNDtIU1uPT4tG7BbBLCeQ qC89zL70CGGRSHAndjoeivy8jQJErq7y32swVX936uLZ2djNVG4aA69h0ckDHH9ZJ5XD L5wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xfSDJkT8; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qw14-20020a1709066a0e00b0078da3cd3073si17838349ejc.628.2022.11.02.09.23.54; Wed, 02 Nov 2022 09:24:19 -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=xfSDJkT8; 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 S231564AbiKBQWo (ORCPT <rfc822;yves.mi.zy@gmail.com> + 99 others); Wed, 2 Nov 2022 12:22:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231625AbiKBQVj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 2 Nov 2022 12:21:39 -0400 Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D411431EC9 for <linux-kernel@vger.kernel.org>; Wed, 2 Nov 2022 09:15:21 -0700 (PDT) Received: by mail-qk1-x72d.google.com with SMTP id l9so12031285qkk.11 for <linux-kernel@vger.kernel.org>; Wed, 02 Nov 2022 09:15:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=TcjKNQcJeWbJaypxypHYP0ACBt1JoRrh+USGvZK/Q14=; b=xfSDJkT8XGT4e4GmeeaWc7Of/KTqwBrPhbnq7ACAM4TlvQNTQJsdiSNILilbdC9oi1 4apQNI33jLHcYYwe99FL9Wx5eAJf/7oSWRd8SmaRT8SFH8zxy7v4we6aJIoKGz0fnFOe OrUwdUA67tGtERKnwLddI3MA/v7va2GvgpqnCkCGig0pVnS5L5MrwurHdpnvTBZLyNqZ Jk3olgal7bz8PFP/3mY5xjJdgd6VJZwBhvBEO6tNerrMx/zk51AAR8KfzI0gjrQYa6py +5n27E4jzNuUu+Tsn1AftYIRdzqxTLKAyMtBCvF1x4hs0SNSCYGhZe5UigdMMY8vZ8Fn AfXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TcjKNQcJeWbJaypxypHYP0ACBt1JoRrh+USGvZK/Q14=; b=oRPHHQoAjYqJslVaQIQR1vZ0M2yWRCleTGwCZk+Nz3OyCnv0yk8wzc5tu83hXLP5Vd EmgOXPDynwiKuwdC4sLg68VBhHJ4BEtBYIXKka8x0XNxjHzfa7y325yKQVkvxwWOf8e1 4xQkQNTS0+gmEG83ck7BZsssrMNvcFC1wURjc9iuBFn7CA1X4gPBdOrx4YaUV+xYTSbv v3jRWSXlewx9VICSe941Oqh51caz3h8p2Xcwy97ftH7ivAl97V4E/t/9sVxV+/R8OBUZ HH7ovyXq+/N2hrAuCyqnfPrAtnvoE3LOJfBYcJEIq4gyhttQwimz70h3rIZlB6ak80XL br4A== X-Gm-Message-State: ACrzQf1UBBwb6KW0z9D/uN294+ex/o8Ojui1XWI2UJ0qGCglxOuUYrTX AZi4kerNhnCmMmShEc4n5U0CNw== X-Received: by 2002:a05:620a:294f:b0:6ee:b598:2625 with SMTP id n15-20020a05620a294f00b006eeb5982625mr18462493qkp.415.1667405715315; Wed, 02 Nov 2022 09:15:15 -0700 (PDT) Received: from krzk-bin.. ([2601:586:5000:570:28d9:4790:bc16:cc93]) by smtp.gmail.com with ESMTPSA id h12-20020ac8548c000000b003a4ec43f2b5sm6831571qtq.72.2022.11.02.09.15.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 09:15:14 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Andrew Lunn <andrew@lunn.ch>, Vivien Didelot <vivien.didelot@gmail.com>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, Oleksij Rempel <linux@rempel-privat.de>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>, Oleksij Rempel <o.rempel@pengutronix.de> Subject: [PATCH v3 1/2] dt-bindings: net: constrain number of 'reg' in ethernet ports Date: Wed, 2 Nov 2022 12:15:11 -0400 Message-Id: <20221102161512.53399-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747940595473417649?= X-GMAIL-MSGID: =?utf-8?q?1748402186087658880?= |
Series |
[v3,1/2] dt-bindings: net: constrain number of 'reg' in ethernet ports
|
|
Commit Message
Krzysztof Kozlowski
Nov. 2, 2022, 4:15 p.m. UTC
'reg' without any constraints allows multiple items which is not the intention for Ethernet controller's port number. Constrain the 'reg' on AX88178 and LAN95xx USB Ethernet Controllers. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> --- Changes since v2: 1. Drop changes to switches. 2. Add Rb tag. Changes since v1: 1. Drop change to non-accepted renesas,r8a779f0-ether-switch. --- Documentation/devicetree/bindings/net/asix,ax88178.yaml | 4 +++- Documentation/devicetree/bindings/net/microchip,lan95xx.yaml | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-)
Comments
On Wed, 02 Nov 2022 12:15:11 -0400, Krzysztof Kozlowski wrote: > 'reg' without any constraints allows multiple items which is not the > intention for Ethernet controller's port number. > > Constrain the 'reg' on AX88178 and LAN95xx USB Ethernet Controllers. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> > > --- > > Changes since v2: > 1. Drop changes to switches. > 2. Add Rb tag. > > Changes since v1: > 1. Drop change to non-accepted renesas,r8a779f0-ether-switch. > --- > Documentation/devicetree/bindings/net/asix,ax88178.yaml | 4 +++- > Documentation/devicetree/bindings/net/microchip,lan95xx.yaml | 4 +++- > 2 files changed, 6 insertions(+), 2 deletions(-) > Reviewed-by: Rob Herring <robh@kernel.org>
On 11/2/22 09:15, Krzysztof Kozlowski wrote: > 'reg' without any constraints allows multiple items which is not the > intention for Ethernet controller's port number. > > Constrain the 'reg' on AX88178 and LAN95xx USB Ethernet Controllers. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Hello: This series was applied to netdev/net-next.git (master) by David S. Miller <davem@davemloft.net>: On Wed, 2 Nov 2022 12:15:11 -0400 you wrote: > 'reg' without any constraints allows multiple items which is not the > intention for Ethernet controller's port number. > > Constrain the 'reg' on AX88178 and LAN95xx USB Ethernet Controllers. > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > Reviewed-by: Oleksij Rempel <o.rempel@pengutronix.de> > > [...] Here is the summary with links: - [v3,1/2] dt-bindings: net: constrain number of 'reg' in ethernet ports https://git.kernel.org/netdev/net-next/c/bd881b44fdbc - [v3,2/2] dt-bindings: net: dsa-port: constrain number of 'reg' in ports https://git.kernel.org/netdev/net-next/c/a352a2c5d2a5 You are awesome, thank you!
diff --git a/Documentation/devicetree/bindings/net/asix,ax88178.yaml b/Documentation/devicetree/bindings/net/asix,ax88178.yaml index 1af52358de4c..a81dbc4792f6 100644 --- a/Documentation/devicetree/bindings/net/asix,ax88178.yaml +++ b/Documentation/devicetree/bindings/net/asix,ax88178.yaml @@ -27,7 +27,9 @@ properties: - usbb95,772b # ASIX AX88772B - usbb95,7e2b # ASIX AX88772B - reg: true + reg: + maxItems: 1 + local-mac-address: true mac-address: true diff --git a/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml b/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml index cf91fecd8909..3715c5f8f0e0 100644 --- a/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml +++ b/Documentation/devicetree/bindings/net/microchip,lan95xx.yaml @@ -39,7 +39,9 @@ properties: - usb424,9e08 # SMSC LAN89530 USB Ethernet Device - usb424,ec00 # SMSC9512/9514 USB Hub & Ethernet Device - reg: true + reg: + maxItems: 1 + local-mac-address: true mac-address: true