Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3498698rwb; Mon, 7 Aug 2023 14:48:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5GMDJZJmiq/IgS1RYKR1qi7J+SvKlLvaw0Ish6V9F9JQjxgpnbRRwkXycAssaw7RbeEgR X-Received: by 2002:a17:902:cece:b0:1bb:c224:908b with SMTP id d14-20020a170902cece00b001bbc224908bmr9885053plg.61.1691444919279; Mon, 07 Aug 2023 14:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691444919; cv=none; d=google.com; s=arc-20160816; b=RKsgdEx/UlQFW+FbwpX9Jr26HiYlF6L3/y2Q1oAUTuiUHRomlfhv+BgninoN3gqv5Z BoIr4C7NGeKlzlNZu/njyalI31SpnZJJVIouEgUFIudMf8j9MUncJ9Ub4pT4EI6AmMy0 4BBu8r/SL5MAH9AcRFK0zF/aI9N+0nfzbek/lquscbc2p2GeiPrkhz5OmcIDk4sseRPn xizJ85AlvsZ0r4K+Gv1X4rsvpcaLHwVi2fekh3J5zTTEogm+2VRm7wG1ESAKcrFiWEZL V44I0DLx3X0I0AkeoWOLmnrP3h3qyE67zP513MYyDzugoK8JBiZ4QF51Qgbg7vopuPj1 FACw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=9J+uImyTN0TfhfemsisSDeyNz12H39me+3+txm8sV1M=; fh=H6iVGnQmUpfDyegAF9F1ciw97hMwInrS63bgTzeAf0A=; b=MTHiwYycIMhDy2b4P6oyWTu8UFwT+ulv6BWpY0CoGzNFKucElmtNHCXLAGOZ8TZhTf e8lE2b2zl99FQIQab7lMzIVJQGQie447eFaGMPoy+LuufmgeyR1Vkn3Kl5REi75t2WKE tRKyR64YZpbZHwyuIAm/CXtCC3Z0eLrv6vVj3CgrYwQZFZ8cnKVIXJhWt53hNwyXsFPn 3peOwrpvdZeQ6VkzroprFtBc3i80k1dRoBn4xs1rtSo6z5+5EJFAb6oPFXuAoJr5xdER GvC5S4+1AoKVcL3jHJaR7d6WqOcVqXYwtHancw7HKS2xgYV2m9ALrqCJG42sd3urbEDi HQig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=5hSOXjVS; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a170902e5c300b001b3cf7eb499si6373099plf.633.2023.08.07.14.48.27; Mon, 07 Aug 2023 14:48:39 -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=@lunn.ch header.s=20171124 header.b=5hSOXjVS; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229848AbjHGTv1 (ORCPT + 99 others); Mon, 7 Aug 2023 15:51:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229761AbjHGTv0 (ORCPT ); Mon, 7 Aug 2023 15:51:26 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CA49199E; Mon, 7 Aug 2023 12:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=9J+uImyTN0TfhfemsisSDeyNz12H39me+3+txm8sV1M=; b=5hSOXjVS6SKPKxljJRlznnehnO nlcxQoPku63L4M3AugNjdliGPXLSZYCQFC6lYfYdtvnYKeegtTNneZQwvVTFgmQkqhZZzAezt3VHV 7B2d3r6mhN3E88lPY/c51AYGEJ3UxI/90r9Y8QL2bVFng9dS+vF7BtbV0M/TWO6OpIes=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qT6Fh-003O16-RO; Mon, 07 Aug 2023 21:50:53 +0200 Date: Mon, 7 Aug 2023 21:50:53 +0200 From: Andrew Lunn To: Bartosz Golaszewski Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Andrew Halaney , Alex Elder , Srini Kandagatla , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: Re: [PATCH 0/2] net: stmmac: allow sharing MDIO lines Message-ID: <54421791-75fa-4ed3-8432-e21184556cde@lunn.ch> References: <20230807193102.6374-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230807193102.6374-1-brgl@bgdev.pl> 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_BLOCKED, SPF_HELO_PASS,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: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 07, 2023 at 09:31:00PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > Two MACs may share MDIO lines to the PHYs. Let's allow that in the > stmmac driver by providing a new device-tree property allowing one MAC > node to reference the MDIO bus defined on a second MAC node. I don't understand why this is needed. phy-handle can point to a phy on any MDIO bus. So it is no problem for one MAC to point to the other MACs MDIO bus as is. You do sometimes get into ordering problems, especially if MAC0 is pointing to a PHY on MAC1 MDIO bus. But MAC0 should get a -EPROBE_DEFER, MAC1 then probes, creating its MDIO bus and the two PHYs on it, and then later MAC0 is probes again and is successful. Andrew