Article View: linux.kernel.netdev
Article #17999Re: [PATCH 1/8] dt-bindings: net: Add MDIO demultiplexer
From: Andrew Lunn
Date: Tue, 17 Nov 2026 17:02
Date: Tue, 17 Nov 2026 17:02
26 lines
9910 bytes
9910 bytes
On Wed, Nov 18, 2026 at 12:18:12AM +0800, Jisheng Zhang wrote: > On Tue, Nov 17, 2026 at 05:20:39PM +0100, Andrew Lunn wrote: > > > > Each transaction? > > > > > > > > Are you proposing to use both MDIO bus master? Why? To the outside > > > > world, it is one MDIO bus, so you only need one active MDIO bus > > > > > > Yep, both MDIO bus masters. I wanted to let each MAC uses its own > > > MDIO rather than disturbe another MAC for dual MACs case. > > > > How does this actually work? Each bus master sees each PHY. So one > > This could work since the demux serializes two masters' access + only > point to one phy phandle in one mac's DT node. And it all blows up when you don't use DT, or the MDIO node is missing and of_mdiobus_register() falls back to mdiobus_register() which scans all the devices on the bus. > Yep, I will switch to one MDIO bus solution by coping with the selector > in the sl2610 stmmac glue driver. Good. Andrew
Technical Details
Message-ID:
<ae24af14-8168-44f0-a150-f18057cc3c95@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365460-linux-kernel-netdev=dewy.ruReferences:
<20261116135442.4827-1-jszhang@kernel.org> <20261116135442.4827-2-jszhang@kernel.org> <16ecb3ac-7876-4db5-9168-5ac9bf31d4b7@lunn.ch> <avvgy_bmRSVApCHA@xhacker> <bd19b55b-00b1-406d-a16b-d04c35efb7d3@lunn.ch> <avxhJs-51vs2Icje@xhacker> <6eb16cd9-27bd-4934-9621-b8928dce6902@lunn.ch> <avx43Nv-DJCX5_Rr@xhacker> <4d4dc86c-c947-40e2-bdaf-ed00a39f3771@lunn.ch> <avx-RO_K5h12HWx2@xhacker>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365460-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH 1/8] dt-bindings: net: Add MDIO demultiplexer Date: Tue, 17 Nov 2026 18:02:05 +0100 Organization: Usenet Network Message-ID: <ae24af14-8168-44f0-a150-f18057cc3c95@lunn.ch> References: <20261116135442.4827-1-jszhang@kernel.org> <20261116135442.4827-2-jszhang@kernel.org> <16ecb3ac-7876-4db5-9168-5ac9bf31d4b7@lunn.ch> <avvgy_bmRSVApCHA@xhacker> <bd19b55b-00b1-406d-a16b-d04c35efb7d3@lunn.ch> <avxhJs-51vs2Icje@xhacker> <6eb16cd9-27bd-4934-9621-b8928dce6902@lunn.ch> <avx43Nv-DJCX5_Rr@xhacker> <4d4dc86c-c947-40e2-bdaf-ed00a39f3771@lunn.ch> <avx-RO_K5h12HWx2@xhacker> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="2383099"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:bWGe5AnWeBlmdEzoDFw01SuUGCE= sha256:YETuFq4SmL8PnQiyvN3DU99Th337JXSX+0C7hLCBfv0= sha1:T6r8VbgaS1jNgNUS32QQ7xXPOWs= sha256:L+GSSQqb6D2U0JHchEWqmcfqBNZPtMwzd18/hJN+etE= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 6E273115004; Tue, 17 Nov 2026 20:02:57 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.951 X-Spam-Status: No, score=-1.951 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bN8PU84KT9g9; Tue, 17 Nov 2026 20:02:49 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-365460-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 6F531114FBA; Tue, 17 Nov 2026 20:02:28 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id A610D3B469; Tue, 17 Nov 2026 17:02:25 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794934944; b=xLqjfEGPzWOCCzuoiVUl9ERyVyY0P7dppRcXcLJc2T1TM9vrtuPbtXsunB4FImaTY0BY V7oJAcCmObJ0NuT0Jjr5TKi2Xjm2CGfPR/j25re0h767NfY7RSnyJubC3yULFZ2NBsDCE xq7izDrrWzdc5pDlg7CoQSjB/WryQIQb744SmAJAQAbvy4Y4NrKmdedVee2xRwr+vhggg YaSMA0bAOB5XlgHYrqzBfs5A5xaSTGP7bDGPO8YLINx8Ph30VBa9sAOjrL8lwjWt+0vOM HASMhvI0tDP9ah+IMLfiYh2Go7RPaC97mDDcB6V9wju421goM1EudO7LNlgUM+qr+Tw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794934944; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=FcrHbezu7ZWjOBBzfj/zQMKcAeBb+uf9T04gRQhuzOk=; b=08ouQaiJwDoR9eWFdlUhr7A5NL8KUh2dFPT5s+vSJPI9GEPMW5B/r4A8YgBsVmG7IMaE uPuCV0CiMCol1xbyEX3QhMj0JRxpCJSuHs/jzgkJZX8wLOpbAAobJIKEpPC2SSUKKQ3K2 WU+HGh6dZ6o6WF8YsDSTMMvvBvkfu/rKpvQuncuTV61gbI/BPRB+tRiwIdRjmlb2ylD0A I9sroKJbWRC4ORsCNzyQYVYBMALuJwQBhxHbRu0H0MpEJ2JVL5Zm/p8KCXjEvyKMX9W80 GTrTA91iMZjM7b8E24thtoFiTAK50s5KsJjehjzU924dPudf9Qy9JbS5ogfA+CZHOdg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b="f/DRJ1Jl"; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48D36606A32F; Tue, 17 Nov 2026 17:02:24 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=f/DRJ1Jl X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794934938; b=TbV3e6pu1rVBISd9LWkLLDy1DKouTCHOkxXDAJ70STSW1Vtz49ZaaSwAWoP3NtRm5z/6 yw1mRmihFsbMCy92JMrAJ0VPa8C1Kyi5meHvm6m8gBf3mLzdR4JMRoON4N6kKb0guWjJY mxMVukVmk7A73Ol4ZiihS3nDEXEkNjYIH7eQhzib/ZABFoX5oApWzptzVddHPnwE+Acnd bRqkfyH0y8lJlu4+Frb0/gNpgPezmkmgj0aBOLKbMlE0MIrS5m93jXwbLfunrql257/qI VmT2JTjg30Sg/ST9WAXW5J04f4mxN1OYy3y61ZYYjQpLAAycAgEtfQAiNHrppWsPTiQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794934938; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=FcrHbezu7ZWjOBBzfj/zQMKcAeBb+uf9T04gRQhuzOk=; b=WG/2S9Uj7sCcJB2ddAT318IEk8YzvDnbx22ZDNSsQNpCCW0JqKu7QwSvoQ7wphUNTAi7 Bio8dTvdoEnUgD/ZZa/hgayyhF4FaWyyCoOLUshB3+S0B8eHYs4fSPDMWGMCdaSPe3u49 WY0w4wHboxQhpsseyqy/OHn/PBgbEWsjXO6k7kFtjzjwbKgboYSsInTwMGybarstkIjH9 nU0yL/PZU7eUvpK6r+yu7UKpF/iksrtVl+RN1WJa+xsjmdlMvYMwb8mdmjZRhN3F5a7UF L51DiTqKKeg+ytaHxVIJsmwnNi9TVTdTkE15WM6r4c3xOVG/f5VKsvKZGMSi6oAxhDg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b="f/DRJ1Jl"; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1EEB7606A31C; Tue, 17 Nov 2026 17:02:17 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 1EEB7606A31C X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-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=FcrHbezu7ZWjOBBzfj/zQMKcAeBb+uf9T04gRQhuzOk=; b=f/DRJ1JlxkjQKKgiumVsBQLZiM eDTDyC59fnlSke8btoyFTBTwVRFcx+9cVDiI9CG/Pz2v9BYmdwQ+QQbltpSrGKAtu9khXAdMhvLaa XUlhedOVcJCmg6GCDC8DLRu+rRMS0WFHhTYyecmdffAiAPgJi315dQDd8J2q8Y3rVGrk=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xTMZJ-00HDCG-CW; Tue, 17 Nov 2026 18:02:05 +0100 X-Cc: Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Maxime Chevallier <maxime.chevallier@bootlin.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <avx-RO_K5h12HWx2@xhacker>