Article View: linux.kernel.netdev
Article #17045Re: [PATCH net-next v4 4/8] dt-bindings: mfd: Add SoC-e SWIP parent
From: Vasilij Strassheim
Date: Mon, 16 Nov 2026 10:34
Date: Mon, 16 Nov 2026 10:34
58 lines
12464 bytes
12464 bytes
On Fri, 2026-11-13 at 21:48 +0100, Andrew Lunn wrote: > > > Given the MDIO bus and mux registers are adjacent, I don't know that > > > putting the mux into its own node and driver really buys you anything. > > > Can't your MDIO driver handle the muxing directly? mdio-mux-mmioreg was > > > created for when you have mux registers in some completely unrelated > > > block. > > > > > > > What it buys me is less custom code to maintain for bus selection and > > selector-value validation. > > > > The MDIO controller and mux were combined in a previous version. > > Following Andrew's suggestion [1], I moved the controller into its own > > driver and stacked mdio-mux-mmioreg on top of it. > > Sure, the selector is part of the same MDIO control register. But the > > generic driver already provides the masked register update and > > selector-value checks. My preference is to keep the current approach > > to reuse existing code, even if it requires some integration and > > documentation efforts. > > Since you have both implementations. Did the lines of code go down > when you reused the existing mux? Yes, the number was halved from around 400 lines when I didn't use mdio-mux at all in c-files. I have no numbers to compare only those for mdio-mux-mmioreg. Without mdio-mux-mmioreg, I would need to reimplement the selector handling and bus number checks, as well as some de-/initialization routines. I think the bcm6368 and iproc use mdio-mux in this way. > > > The IP core can also include an I2C master for accessing external > > devices as a synthesis option. > > SFP cage being the obvious thing. SFP is a good hint. Their website shows FPGA-based devices, such as PCIe cards, that support SFP ports. > > It will need to be a Linux I2C master in order that phylink can use > it. And i would not be too surprised if the existing I2C drivers can > drive it, it will be licensed IP. So an MFD will make it easier to > instantiate. Looks like a standard I2C interface. I don't have one yet to test, but it would be good to consider this early with MFD. > > Andrew Thanks, Vasilij
Technical Details
Message-ID:
<cfe4e81c5146628463ace9f170c7265c98f17c27.camel@linutronix.de>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364192-linux-kernel-netdev=dewy.ruReferences:
<20261105-devel-vstrassheim-soce-dsa-ml-v4-0-02f3cde2afa1@linutronix.de> <20261105-devel-vstrassheim-soce-dsa-ml-v4-4-02f3cde2afa1@linutronix.de> <20261106-judicious-penguin-of-enhancement-b28c8b@quoll> <f5c7c9901aca84f0b814e5b6c153db84af826dd7.camel@linutronix.de> <cc35b2127b04772f05948ac51c8faa5ef07da0b0.camel@linutronix.de> <20261110192118.GA1412882-robh@kernel.org> <5a6183e3480a0d910e275acf591e2db8700da827.camel@linutronix.de> <e4417d39-390d-4ece-bb2d-5f1745185d37@lunn.ch>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364192-linux-kernel-netdev=dewy.ru From: v.strassheim@linutronix.de (Vasilij Strassheim) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v4 4/8] dt-bindings: mfd: Add SoC-e SWIP parent Date: Mon, 16 Nov 2026 11:34:55 +0100 Organization: Usenet Network Message-ID: <cfe4e81c5146628463ace9f170c7265c98f17c27.camel@linutronix.de> References: <20261105-devel-vstrassheim-soce-dsa-ml-v4-0-02f3cde2afa1@linutronix.de> <20261105-devel-vstrassheim-soce-dsa-ml-v4-4-02f3cde2afa1@linutronix.de> <20261106-judicious-penguin-of-enhancement-b28c8b@quoll> <f5c7c9901aca84f0b814e5b6c153db84af826dd7.camel@linutronix.de> <cc35b2127b04772f05948ac51c8faa5ef07da0b0.camel@linutronix.de> <20261110192118.GA1412882-robh@kernel.org> <5a6183e3480a0d910e275acf591e2db8700da827.camel@linutronix.de> <e4417d39-390d-4ece-bb2d-5f1745185d37@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: usenet.network; logging-data="2035333"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:DKT9PIEZnOK43eGyW+safxc/Ywc= sha256:BgSkx77vdpsvibk/Qd/1IDqW+Burh8HcoV5GxRMxEjg= sha1:Xr8oKRWBfS2L2YVDr2tlYqrX9dA= sha256:nh/8nKjipivbyq/1LXkXC40pD6oyoY+8E3FZ4fRWajU= 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 D226E114B9A; Mon, 16 Nov 2026 13:35:31 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=linutronix.de header.b=F9/+sMXI; dkim=neutral reason="invalid (unsupported algorithm ed25519-sha256)" header.d=linutronix.de header.b=VyJ9h3CI 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 6dv8y4NXL94c; Mon, 16 Nov 2026 13:35:28 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-364192-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=linutronix.de X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 5ECF1114B16; Mon, 16 Nov 2026 13:35:15 +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 5645B3C1A4; Mon, 16 Nov 2026 10:35:05 +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=1794825305; b=FCNwNoX8AQHkGu+0KhxLsyKiCTf9mtfPU/sVLxYLy7oHJZ5JVljcJ3/PEsplKIZE9VqC 1S4P4uK8OfxHaNMF2q+IL9LXeTufbitybhI8vKS36ceq/DMx1oglrtO6MRRKRcXsgjf6l oNVr60RSebekcgU1kV8lL90wuYRg8rzziAZxk/QNXabIjSaU3FVMqO+KCK95QZjg6I1AY ekHKzVWUSKi1zBHnDh5CoOOGiRrWT1rnYSYMHNhMaB9Y4Gqv8dCj9LYpfBdMPF8w4Caqt 8pDWqNvcmWMifI0t+c3YUKCihWi+K1Tg1bzLgQ5I2N6NblbNQkjxCkQ3V9gNcgkUlmg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794825305; h=X-Original-To:Received:DMARC-Filter:Message-ID:DKIM-Signature: DKIM-Signature:Subject:From:To:Cc:Date:In-Reply-To:References: Organization:Content-Type:Content-Transfer-Encoding:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version; bh=GOPTJCv3XLVXfPEVUY2szn6O3hXCLFE1beoEE0C7n3c=; b=jI6zBoCySHFZMHKibs30pwBSzF7+CymfV485uR05qXyd3/+3Nmlt4z22pnjSQAGUm4Th MheADrnqndjUE8nUIErcop+nrilxkZ9cjeJWFn0768657Rw/EoO1ZBgS6DF1kZUxwN5sv lM8X7exCmjZBUi5cuk54+POp84BWYhxY+6mFN9tVNMuns/S6abLFfvYdEmf2I5/6omokt wR8KMaIloid72HD5jes2Bd9pcoT+/e0Z0xAIRqsmlJlZU7waHa17uKWs8xP3MZgFhCIid 1+MoYlHxqC5Fja92G9vZ7OVr+3FWI3yfQD7sde1E9oliPbWnM79amYz3qoWsX93nTPQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b="F9/+sMXI"; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=VyJ9h3CI; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; 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 E782E606A334; Mon, 16 Nov 2026 10:35:04 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=F9/+sMXI; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=VyJ9h3CI X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=193.142.43.55 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794825299; b=CwxEOsXCtbSi6LVyEfDywEobkLJOUpbkxljaJFD+t9NbPhJmHRqnZ/kne+heOPIukLRt lZN++w+c7jQuzssbOrrfAro0eNGfYf7QVs4pt1CB5ue44qY1Vd1XEG65Wd6AcEFPllgdN 9Vb1P4I9MC1aaHA6MPQNCxjhFqvC2V5CqUgDLcEjVzHppC8Ys6joyBeBPQ/SjHp67y/z9 X8uoyvMHFclP+iaNddOFS37Nb+0nQ535MvDycpoc82tj8EdePowph/bXw7vvB4UZNNs0B /YoOgghyd+c5K0dpw9mxPyIKmmudpCYnaf+FnQE+5rvcu5novBWXIXhoANy2cANxm1A== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794825299; h=DMARC-Filter:Message-ID:DKIM-Signature:DKIM-Signature:Subject:From: To:Cc:Date:In-Reply-To:References:Organization:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=GOPTJCv3XLVXfPEVUY2szn6O3hXCLFE1beoEE0C7n3c=; b=qy3EmqmGfZzYU+0aOp72V48DEmkcY++UswRFJEy3NkmCSz8CrYxI3VVW9YGtdx3fGENW lWHHSteKg87C7HVHlBujW1QlTMZaey3qu2tko0LjIS7Uzxy46AyaTHQXYhqBsIO/OHtXE HE0yV/LHIQWQPddFsDU5H+pO5lhSIA4pxCatf5fZweXrSyhLidcxpAnr/dR6IZJl2nFUP mQJvEQ4Zl4gJldEIsWIyAHOTwRKuw1bt0Hy7Qeo7JwfQsuoAne1wy0WA+1xcoK8qYhbwM dLqU/l7ilYlX3ZrF6G48qkqagewFTPAMk3BVY0AnmDshpLntBWrToV0VURQPIBR3Uew== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b="F9/+sMXI"; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=VyJ9h3CI; arc=none smtp.remote-ip=193.142.43.55 X-Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9238A606A329; Mon, 16 Nov 2026 10:34:58 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9238A606A329 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1794825296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GOPTJCv3XLVXfPEVUY2szn6O3hXCLFE1beoEE0C7n3c=; b=F9/+sMXIiVNvIlgrdZB1FU8a0g1qhn/cx/k+eeh5SBSDpQXlZXYWPYlE/L6Y2i7hP7RhIK XX4rC4U1cOJG8RboEQTLsPic46SDQCJQ+kXa8gNf6cRVkQopXHN6X4B3NYUTCi0SC1pSMI eycP9FSIQ0fY0du8V5o3s1utmUimuV/42ZnSOLFvquiPasjLyiV4DijoS7tUlMIXqeRuZ9 EEXFKGugL/QOameZNi/EDRM0Tb7FCim5Tpy0SvUGPUuWwMm4Stkuuv24Gm6mNttgB+hYHE 0YF4RNVevIAUoniFG7XgPJmDUcgWzS82DCBBsWOQSNcEiyYe7wKL6Frp6GLfvQ== X-DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1794825296; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=GOPTJCv3XLVXfPEVUY2szn6O3hXCLFE1beoEE0C7n3c=; b=VyJ9h3CIUVZngr18q68/wjgTQXAd7MOfui0b+PaqvP8JS4/CslSDW4fZdR5Bxv95EOlgxm uz3FqMqB3cnvVHBw== X-Cc: Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>, Russell King <linux@armlinux.org.uk>, Andrew Lunn <andrew+netdev@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Eric Dumazet <edumazet@kernel.org>, Lee Jones <lee@kernel.org>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, mfd@lists.linux.dev, Martin Kaistra <martin.kaistra@linutronix.de>, Benedikt Spranger <b.spranger@linutronix.de> X-In-Reply-To: <e4417d39-390d-4ece-bb2d-5f1745185d37@lunn.ch> X-Organization: Linutronix GmbH 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