Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp51381rdb; Mon, 30 Oct 2023 23:28:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHK/+4ZY0VnqxFvEqEgD57O62LVcgecEGB9r37R4DOV+OsiAfWy087RkOWq4WzAYMcfM3fr X-Received: by 2002:a17:90a:ce82:b0:268:808:8e82 with SMTP id g2-20020a17090ace8200b0026808088e82mr2417814pju.1.1698733700494; Mon, 30 Oct 2023 23:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698733700; cv=none; d=google.com; s=arc-20160816; b=KNZ6BnF0MgRejdpqWOVbYz2LtWQDKM2mC1Ef9VxB2pMu21wWQoBkZ0zi0ahEMUsuGc E8umE1yXA2e9DAnbJrHJx6grxmEmfjA0+Yfu6j5dHYfMZhANoN/Bt92dZH6KkQctYkwy VOKURIXxjWKUT2p4zxuLcZQDz97DjNLymoJpKtA49fB9RHsFYvVearo4KeX3+GOsHyel MELnek4lz3i0wp36lxARnRwOvzR0e6J4qkm9Ipl36HLPgI49Qkcttd0jrjFO3xmpAQtG c2y5nK7rrduIOCuiJJUcoKhaIl8KoSNO8/osV3zYzBBORgP7zBMjdII8Z+lLM9dLQrJU 1jkA== 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=cl2hpslltRd0N76ZJvM7fEQPy6qACMlbaC19AbycC1U=; fh=TJBdwXTfoywG+r1jB+G9JOmr/bX1mFOSoh5D0AmVBnM=; b=ND8PHTIw8a6kCVyppT5dZ9z1c2KXd6QGfEoKeS8mCnLR4MtQzY81MoXAap5y9aWSlQ B69eP63gSQfzBeDL4XUgkjJLzfnunEQ+VSoVBuJHZn1C9Z2B0URpPGn6YcvqNCWpHP39 xmvFm3G7dM7KhJo9+CywKrEyrN0YMoFmRrblv3+8jGChoxTDQvpRXnVxydqDHcZdN8uh tjM1yGMILXDLPjnMtMVBfHcCmyqbAly4eh8XVKJ0LC9iZKrmd9J36A+4XRnPtj+u+li2 dxfpaUtFmRaiJJ9U1mafSQVI3Hf+Ie0AsmsICzIOMrBSiuUeeQkTM1iE229SPE4U0SyR 2ubg== 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:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id gt22-20020a17090af2d600b0027766994586si518713pjb.71.2023.10.30.23.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 23:28:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 29AF1803FC2A; Mon, 30 Oct 2023 23:28:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235564AbjJaG15 (ORCPT + 99 others); Tue, 31 Oct 2023 02:27:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230298AbjJaG14 (ORCPT ); Tue, 31 Oct 2023 02:27:56 -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 7552CA9 for ; Mon, 30 Oct 2023 23:27:53 -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 1qxiE7-0001r6-JT; Tue, 31 Oct 2023 07:27:47 +0100 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 1qxiE5-005Vb1-UP; Tue, 31 Oct 2023 07:27:45 +0100 Received: from ore by ptx.whiteo.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1qxiE5-00HCwB-Rd; Tue, 31 Oct 2023 07:27:45 +0100 Date: Tue, 31 Oct 2023 07:27:45 +0100 From: Oleksij Rempel To: Vladimir Oltean Cc: Ante Knezic , conor+dt@kernel.org, UNGLinuxDriver@microchip.com, andrew@lunn.ch, 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: <20231031062745.GO3803936@pengutronix.de> References: <20231024142426.GE3803936@pengutronix.de> <20231027063743.28747-1-ante.knezic@helmholz.de> <20231030174225.hqhc3afbayi7dmos@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231030174225.hqhc3afbayi7dmos@skbuf> 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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 30 Oct 2023 23:28:14 -0700 (PDT) On Mon, Oct 30, 2023 at 07:42:25PM +0200, Vladimir Oltean wrote: > On Fri, Oct 27, 2023 at 08:37:43AM +0200, Ante Knezic wrote: > > On Tue, 24 Oct 2023 16:24:26 +0200, Oleksij Rampel wrote: > > > > > > That is correct, I guess its a matter of nomenclature, but how do you > > > > "tell" the switch whether it has REFCLKI routed externally or not if not by > > > > setting the 0xC6 bit 3? Is there another way to achieve this? > > > > > > I do not see any other way to "tell" it. The only thing to change in you > > > patches is a different way to tell it to the kernel. > > > Instead of introducing a new devicetree property, you need to reuse > > > phy-mode property. > > > > > ... > > > > > Since phy-mode for RMII was never set correctly, it will most probably > > > break every single devicetree using KSZ switches. It is the price of fixing > > > things :/ > > > > To Vladimir Oltean: What are your thoughts on this? > > > > In addition to all of that, the MAC/PHY roles are not just about the > direction of the REF_CLK, but also about the /J/ /K/ codewords that are > placed by the PHY in the inter packet gap on RXD[1:0]. A MAC doesn't do > this, and if it did, the PHY wouldn't expect it, and AFAIK, would > blindly propagate those code words onto the BASE-T wire, which is > undesirable. Interesting detail. I didn't knew it, it would be good to document it somewhere near to revrmii binding :) 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 |