Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1066631rda; Mon, 23 Oct 2023 00:59:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2NgMzJoihLJA8LxVvpozeh6i08laWHaqN5hP0FM+uq4hiqpwHwo4v5bmw79tBulQMYYq+ X-Received: by 2002:a17:902:c94f:b0:1ca:eb17:b51a with SMTP id i15-20020a170902c94f00b001caeb17b51amr2758630pla.27.1698047952880; Mon, 23 Oct 2023 00:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698047952; cv=none; d=google.com; s=arc-20160816; b=UHPZdeD2ekOhn3inHPEaJ2UVodwWktzSZN6n3oHLaxJiWmr0d6Kdde++aPXzO/h6kK xtGh6775NjNPOBk3Viks04Jm3Q7gUid06o30/IaTmxOFHRe7hRDeepcaxkTf1ej5GeFS MujYj83Ujsh3AFe/VnJNRa+INNNM2yTXFAQgT3h3KWxrxXOytsqu6KhNxXIZjCqFqInA ZVJk6k5mcuZxuvKY2MdcYVOQIVj3lyWr8rQLJgKZHrDKbo+9tUWkIS2fBGk8N4VVXttF BuTHHbjEH0ZDdobM/5G58WJWBTsqFt3ibOYQLxbx3qy/l1XewnTMFlX6AxSaVeS7P1qz SWAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=th0fWbDt3XJJJ1/Ijuz403ltAaBSGZYmDQbg+bgVw6k=; fh=HY8du/jkfRAwCQh/UaOb+teejmBKPyX3p/+IdTh09RU=; b=Yca0cgXcMvsSZsp9Bh2M6CHBVXip10RawjA82dW/aTLB5KYWRqz53tBHtsQbPN7j+G K11ZORJlUeknEhY50UKTGR4ES6aISO5tqKbI04ii4PG/WLEnDSg1I2w4NXQ9iR4SDI+y Te686va43NqY1ExCFf5GUIGs3A38DOquXjo3Li2eaezsPceFaYZSsf7g7V6VHG4Cu80X Eiicm+aATtKv0PuycSWtK2ZOrgA+gJcobLf6H9OrC4ygfUNxSq9O2msxZxa3IQwyNjUW 4yyxPpeyr2lr8Jxv/+V9J/VOEnzhKPMQNO5NzQZAPDm1e5ZkUaDqaJY9llwyUH229kqg 1zkg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id k13-20020a170902760d00b001c61bd7cee0si6081313pll.211.2023.10.23.00.59.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 00:59:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 2530A80942F1; Mon, 23 Oct 2023 00:59:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229519AbjJWH7A (ORCPT + 99 others); Mon, 23 Oct 2023 03:59:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjJWH67 (ORCPT ); Mon, 23 Oct 2023 03:58:59 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADDC1F5 for ; Mon, 23 Oct 2023 00:58:55 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1quppp-0004Ut-Kh; Mon, 23 Oct 2023 09:58:49 +0200 Received: from [2a0a:edc0:2:b01:1d::c0] (helo=ptx.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1quppo-003ei6-D0; Mon, 23 Oct 2023 09:58:48 +0200 Received: from ore by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1quppo-00FtCD-9u; Mon, 23 Oct 2023 09:58:48 +0200 Date: Mon, 23 Oct 2023 09:58:48 +0200 From: Oleksij Rempel To: Ante Knezic Cc: olteanv@gmail.com, UNGLinuxDriver@microchip.com, andrew@lunn.ch, conor+dt@kernel.org, davem@davemloft.net, devicetree@vger.kernel.org, edumazet@google.com, f.fainelli@gmail.com, krzysztof.kozlowski+dt@linaro.org, kuba@kernel.org, linux-kernel@vger.kernel.org, marex@denx.de, netdev@vger.kernel.org, pabeni@redhat.com, robh+dt@kernel.org, woojung.huh@microchip.com Subject: Re: [PATCH net-next v4 2/2] net:dsa:microchip: add property to select Message-ID: <20231023075848.GA3786047@pengutronix.de> References: <20231020143759.eknrcfbztrc543mm@skbuf> <20231023072700.17060-1-ante.knezic@helmholz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231023072700.17060-1-ante.knezic@helmholz.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 23 Oct 2023 00:59:10 -0700 (PDT) On Mon, Oct 23, 2023 at 09:27:00AM +0200, Ante Knezic wrote: > On Fri, 20 Oct 2023 17:37:59 +0300, Vladimir Oltean wrote: > > > Sorry, I didn't realize on v3 that you didn't completely apply my > > feedback on v2. Can "microchip,rmii-clk-internal" be a port device tree > > property? You have indeed moved its parsing to port code, but it is > > still located directly under the switch node in the device tree. > > > > I'm thinking that if this property was also applicable to other switches > > with multiple RMII ports, the setting would be per port rather than global. > > As far as I am aware only the KSZ8863 and KSZ8873 have this property available, > but the biggger issue might be in scaling this to port property as the register > "Forward Invalid VID Frame and Host Mode" where the setting is applied is > located under "Advanced Control Registers" section which is actually global at > least looking from the switch point of view. Usually port properties are more > applicable when registers in question are located under "Port Registers" section. > This is somewhat similar to for example enabling the tail tag mode which is > again used only by the port 3 interface and is control from "Global Control 1" > register. > With this in mind - if you still believe we should move this to port dt > property, then should we forbid setting the property for any other port other > than port 3, and can/should this be enforced by the dt schema? > If I see it correctly, KSZ9897R supports RMII on two ports (6 and 7) with configurable clock direction. See page 124 "5.2.3.2 XMII Port Control 1 Register" http://ww1.microchip.com/downloads/en/DeviceDoc/00002330B.pdf Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |