net: phy: Allow splitting MDIO bus/device support from PHYs
Subsystems (3)
PATCH 1/1 net: phy: Allow splitting MDIO bus/device support from PHYs
Introduce a new configuration symbol: MDIO_DEVICE which allows building the MDIO devices and bus code, without pulling in the entire Ethernet PHY library and devices code.
PHYLIB nows select MDIO_DEVICE and the relevant Makefile files are updated to reflect that.
--- drivers/net/Makefile | 2 +- drivers/net/phy/Kconfig | 59 ++++++++++++++++++++++++++-------------------- drivers/net/phy/Makefile | 3 ++- drivers/net/phy/mdio_bus.c | 2 ++ 4 files changed, 39 insertions(+), 27 deletions(-)
drivers/net/Makefile +1 -1
@@ -17,7 +17,7 @@ obj-$(CONFIG_MII) += mii.o obj-$(CONFIG_MDIO) += mdio.o obj-$(CONFIG_NET) += Space.o loopback.o obj-$(CONFIG_NETCONSOLE) += netconsole.o -obj-$(CONFIG_PHYLIB) += phy/ +obj-$(CONFIG_MDIO_DEVICE) += phy/ obj-$(CONFIG_RIONET) += rionet.o obj-$(CONFIG_NET_TEAM) += team/ obj-$(CONFIG_TUN) += tun.o
drivers/net/phy/Kconfig +34 -25
73 lines not on this page · raw message
drivers/net/phy/Makefile +2 -1
@@ -1,6 +1,7 @@ # Makefile for Linux PHY drivers and MDIO bus drivers -libphy-y := phy.o phy_device.o mdio_bus.o mdio_device.o +libphy-y := phy.o phy_device.o +obj-$(CONFIG_MDIO_DEVICE) += mdio_device.o mdio_bus.o libphy-$(CONFIG_SWPHY) += swphy.o libphy-$(CONFIG_LED_TRIGGER_PHY) += phy_led_triggers.o
drivers/net/phy/mdio_bus.c +2 -0
@@ -644,9 +644,11 @@ int __init mdio_bus_init(void)return ret; } +EXPORT_SYMBOL_GPL (mdio_bus_init);void mdio_bus_exit (void ) {class_unregister (&mdio_bus_class);bus_unregister (&mdio_bus_type); } +EXPORT_SYMBOL_GPL (mdio_bus_exit);
Signature · 1 line
2.9.3
Russell King - ARM Linux
reviewerQuoted 6 lines · Florian Fainelli
Introduce a new configuration symbol:
MDIO_DEVICEwhich allows building the MDIO devices and bus code, without pulling in the entire Ethernet PHY library and devices code.PHYLIB nows select
MDIO_DEVICEand the relevantMakefilefiles are updated to reflect that.
I think you've been a little too quick off the mark posting this - see my points raised in reply to your RFC. This will cause problems when built as a module, not least the missing MODULE_LICENSE()s.
Signature · 3 lines
RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.
Quoted 5 lines · Russell King - ARM Linux
Quoted 4 lines · Florian Fainelli
Introduce a new configuration symbol:
MDIO_DEVICEwhich allows building the MDIO devices and bus code, without pulling in the entire Ethernet PHY library and devices code.
Quoted 7 lines
Quoted 2 lines
PHYLIB nows select
MDIO_DEVICEand the relevantMakefilefiles are updated to reflect that.I think you've been a little too quick off the mark posting this - see my points raised in reply to your RFC. This will cause problems when built as a module, not least the missing MODULE_LICENSE()s.
Yes, good point, let me fix that.
Signature · 1 line
Florian