]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: phy: make mdio consumer / device layer a separate module
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 15 May 2025 08:11:54 +0000 (10:11 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 20 May 2025 10:22:47 +0000 (12:22 +0200)
commit31be641d74267d98317ef5a2b90e6200511cabb3
tree1012522a7d0c288a1971daa97a9332f1a603c2c6
parentf685204c57e87d2a88b159c7525426d70ee745c9
net: phy: make mdio consumer / device layer a separate module

After having factored out the provider part from mdio_bus.c, we can
make the mdio consumer / device layer a separate module. This also
allows to remove Kconfig symbol MDIO_DEVICE.
The module init / exit functions from mdio_bus.c no longer have to be
called from phy_device.c. The link order defined in
drivers/net/phy/Makefile ensures that init / exit functions are called
in the right order.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/dba6b156-5748-44ce-b5e2-e8dc2fcee5a7@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/mdio/Kconfig
drivers/net/phy/Kconfig
drivers/net/phy/Makefile
drivers/net/phy/mdio_bus.c
drivers/net/phy/mdio_device.c
drivers/net/phy/phy_device.c
include/linux/phy.h