]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - include/linux/phy.h
net: phy: add concept of shared storage for PHYs
authorMichael Walle <michael@walle.cc>
Wed, 6 May 2020 14:53:13 +0000 (16:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2020 21:53:29 +0000 (14:53 -0700)
commit6349084746ff4f5f7ebc748e4b2a890f8c57b129
tree81102a5bf8f322a83df5f15d2ca1f9cfd8accafa
parent857b412511c87ed7137e63b90b2de020c24660e9
net: phy: add concept of shared storage for PHYs

There are packages which contain multiple PHY devices, eg. a quad PHY
transceiver. Provide functions to allocate and free shared storage.

Usually, a quad PHY contains global registers, which don't belong to any
PHY. Provide convenience functions to access these registers.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio_bus.c
drivers/net/phy/phy_device.c
include/linux/phy.h