[PATCH net-next 0/3] add phy shared storage

From: Michael Walle
Date: Mon May 04 2020 - 12:39:18 EST


Introduce the concept of a shared PHY storage which can be used by some
QSGMII PHYs to ease initialization and access to global per-package
registers.

Changes since RFC:
- check return code of kzalloc()
- fix local variable ordering (reverse christmas tree)
- add priv_size argument to phy_package_join()
- add Tested-by tag, thanks Vladimir.

Michael Walle (3):
net: phy: add concept of shared storage for PHYs
net: phy: bcm54140: use phy_package_shared
net: phy: mscc: use phy_package_shared

drivers/net/phy/bcm54140.c | 57 +++----------
drivers/net/phy/mdio_bus.c | 1 +
drivers/net/phy/mscc/mscc.h | 1 -
drivers/net/phy/mscc/mscc_main.c | 101 +++++++---------------
drivers/net/phy/phy_device.c | 138 +++++++++++++++++++++++++++++++
include/linux/phy.h | 89 ++++++++++++++++++++
6 files changed, 270 insertions(+), 117 deletions(-)

--
2.20.1