From: Daniel Golle <daniel@makrotopia.org>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Markus Stockhausen <markus.stockhausen@gmx.de>,
"hkallweit1@gmail.com" <hkallweit1@gmail.com>,
"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
"davem@davemloft.net" <davem@davemloft.net>,
"edumazet@google.com" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"chris.packham@alliedtelesis.co.nz"
<chris.packham@alliedtelesis.co.nz>
Subject: Re: [PATCH 3/9] net: mdio: realtek-rtl9300: Add ports to info structure
Date: Wed, 20 May 2026 03:59:11 +0100 [thread overview]
Message-ID: <ag0jf16wrOr7F9d6@makrotopia.org> (raw)
In-Reply-To: <87c64246-5f3e-44d5-8d62-6778c771e83c@lunn.ch>
On Wed, May 20, 2026 at 03:42:44AM +0200, Andrew Lunn wrote:
> > > Do any of these MDIO busses appear on the
> > > outside? Somewhere i can connect an
> > > external PHY, or another switch in cascade?
> >
> > Yes. See 6.14 in datasheet [1]
> > We even can disable/enable each on RTL931x
>
> So how do you handle that this external PHY is not for a port of the
> switch? It is for an i210 hanging off the PCIe bus, or a USB-Ethernet
> dongle? Linux itself would have no problem with that.
On the *primary* MDIO busses of this class of SoCs (ie. which this
driver deals with) it only possible to access MDIO devices which are
Ethernet PHYs mapped to a switch port.
Theoretically you could maybe use pinctrl/pinmux to switch the MDC and
MDIO pins to simple GPIOs and bit-bang the MDIO bus. However, as
configuring the MACs depends on the hardware PHY polling, that
bit-banged bus could then no longer be used to connect Ethernet PHYs
used for switch ports of that SoC.
That being said, many of those SoCs also got an auxilary MDIO bus
(which require another, completely different and much more simple
driver[1]) to connect things (such as RealTek's own LED/GPIO
controllers) which aren't directly mapped to a switch port.
Obviously all existing hardware (ie. low-cost switches) using those
SoCs obey to those restrictions.
(plus: there simply aren't any PCIe or USB busses; it's an Ethernet
switch; the CPU is a low-end MIPS and itself hardly capably of moving
more than a few megabits, it's meant to manage and monitor the
Ethernet switch fabric doing all the actual work)
[1]: https://git.openwrt.org/openwrt/openwrt/tree/target/linux/realtek/patches-6.18/723-net-mdio-Add-Realtek-Otto-auxiliary-controller.patch
next prev parent reply other threads:[~2026-05-20 2:59 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-19 16:57 [PATCH 0/9] mdio: realtek-rtl9300: Groundwork for multi SOC support Markus Stockhausen
2026-05-19 16:57 ` [PATCH 1/9] net: mdio: realtek-rtl9300: Convert to generic prefix Markus Stockhausen
2026-05-19 17:51 ` Andrew Lunn
2026-05-19 16:57 ` [PATCH 2/9] net: mdio: realtek-rtl9300: Add device specific info structure Markus Stockhausen
2026-05-19 16:57 ` [PATCH 3/9] net: mdio: realtek-rtl9300: Add ports to " Markus Stockhausen
2026-05-19 17:27 ` Daniel Golle
2026-05-19 17:59 ` Andrew Lunn
2026-05-19 19:06 ` AW: " Markus Stockhausen
2026-05-19 20:14 ` Andrew Lunn
2026-05-19 20:36 ` AW: " Markus Stockhausen
2026-05-19 22:47 ` Daniel Golle
2026-05-20 1:09 ` Andrew Lunn
[not found] ` <10121615-6F47-2A48-825A-0AC1E0C0F0C1@hxcore.ol>
2026-05-20 1:42 ` Andrew Lunn
2026-05-20 2:59 ` Daniel Golle [this message]
2026-05-19 16:57 ` [PATCH 4/9] net: mdio: realtek-rtl9300: Add pages " Markus Stockhausen
2026-05-19 17:29 ` Daniel Golle
2026-05-19 18:07 ` Andrew Lunn
2026-05-19 16:57 ` [PATCH 5/9] net: mdio: realtek-rtl9300: Add register structure Markus Stockhausen
2026-05-19 16:57 ` [PATCH 6/9] net: mdio: realtek-rtl9300: Add command/C22 register Markus Stockhausen
2026-05-19 16:57 ` [PATCH 7/9] net: mdio: realtek-rtl9300: Add I/O register Markus Stockhausen
2026-05-19 16:57 ` [PATCH 8/9] net: mdio: realtek-rtl9300: Add mask register Markus Stockhausen
2026-05-19 18:43 ` Andrew Lunn
2026-05-19 16:57 ` [PATCH 9/9] net: mdio: realtek-rtl9300: Link I/O functions in info structure Markus Stockhausen
2026-05-19 18:46 ` Andrew Lunn
2026-05-19 19:25 ` AW: " Markus Stockhausen
2026-05-19 20:16 ` Andrew Lunn
2026-05-19 20:40 ` AW: " Markus Stockhausen
2026-05-20 2:04 ` [PATCH 0/9] mdio: realtek-rtl9300: Groundwork for multi SOC support Chris Packham
2026-05-20 6:06 ` AW: " Markus Stockhausen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ag0jf16wrOr7F9d6@makrotopia.org \
--to=daniel@makrotopia.org \
--cc=andrew@lunn.ch \
--cc=chris.packham@alliedtelesis.co.nz \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=markus.stockhausen@gmx.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox