[PATCH 1/6] bus: Add shared MDIO bus framework

From
Andrew Lunn <andrew@lunn.ch>
Date
2016-04-26 19:41:18
Also in
linux-devicetree, lkml, netdev
Reply to
Arnd Bergmann, 2016-04-26
On Tue, Apr 26, 2016 at 09:24:34PM +0200, Arnd Bergmann wrote:
On Tuesday 26 April 2016 20:23:35 Andrew Lunn wrote:
quoted
quoted
A more complex problem would be having a PHY driver for a device
that can be either an ethernet phy or some other phy.
I doubt that ever happens. You can have up to 32 different devices on
an MDIO bus. Since an Ethernet PHY and a "some other sort of PHY" are
completely different things, why would a hardware engineer place them
on the same address? It is like saying your ATA controller and VGA
controller share the same slot on the PCI bus...
To clarify: what I meant is a device that is designed as a PHY for
similar hardware (e.g. SATA, USB3 and PCIe) and that has a common
register set and a single driver, but that driver can operate
in multiple modes. You typically have multiple instances of
such hardware, with each instance linked to exactly one host
device, but one driver for all of them.

See Documentation/devicetree/bindings/phy/apm-xgene-phy.txt
and drivers/phy/phy-xgene.c for one such example.
Interesting. Also, that this lists SGMII. I assume this is a phy in
the MAC in order to talk to the Ethernet PHY.

I still don't see it being a big problem if a phy driver implements an
Ethernet PHY. It just needs to call phy_device_create() and
phy_device_register().

	Andrew
Thread (27 messages) 27 messages, 7 authors, last reply 2016-04-27
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help