net: Drop OF dependency for some Broadcom drivers
Subsystems (4)
cover net: Drop OF dependency for some Broadcom drivers
Hi David,
This patch series drops the CONFIG_OF dependency that some Broadcom drivers had, this is no longer necessary and goes against allowing build testing on more platforms.
Let me know if kbuild or your own builds somehow fail.
Florian Fainelli (3):
net: phy: Drop OF dependency for MDIO_BCM_UNIMAC
net: ethernet: broadcom: Drop dependency on OF
net: dsa: Drop OF dependency for BCM_SF2
drivers/net/dsa/Kconfig | 2 +- drivers/net/ethernet/broadcom/Kconfig | 4 ++-- drivers/net/phy/Kconfig | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.14.1
PATCH 1/3 net: phy: Drop OF dependency for MDIO_BCM_UNIMAC
The driver builds fine even with CONFIG_OF=n since we now have stubs that are provided.
--- drivers/net/phy/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/phy/Kconfig +1 -1
@@ -28,7 +28,7 @@ config MDIO_BCM_IPROC config MDIO_BCM_UNIMAC tristate "Broadcom UniMAC MDIO bus controller" - depends on HAS_IOMEM && OF_MDIO + depends on HAS_IOMEM help This module provides a driver for the Broadcom UniMAC MDIO busses. This hardware can be found in the Broadcom GENET Ethernet MAC
Signature · 1 line
2.14.1
PATCH 2/3 net: ethernet: broadcom: Drop dependency on OF
In reply to Florian FainelliBoth BCMGENET and SYSTEMPORT build just fine with CONFIG_OF=n, we do have a dependency on HAS_IOMEM that was not being reflected for SYSTEMPORT so add that.
--- drivers/net/ethernet/broadcom/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/broadcom/Kconfig +2 -2
@@ -61,7 +61,7 @@ config BCM63XX_ENET config BCMGENET tristate "Broadcom GENET internal MAC support" - depends on OF && HAS_IOMEM + depends on HAS_IOMEM select MII select PHYLIB select FIXED_PHY
@@ -181,7 +181,7 @@ config BGMAC_PLATFORM config SYSTEMPORT tristate "Broadcom SYSTEMPORT internal MAC support" - depends on OF + depends on HAS_IOMEM depends on NET_DSA || !NET_DSA select MII select PHYLIB
Signature · 1 line
2.14.1
PATCH 3/3 net: dsa: Drop OF dependency for BCM_SF2
In reply to Florian FainelliNET_DSA_BCM_SF2 does not need to depend on CONFIG_OF anymore since we have stubs when that option is disabled.
--- drivers/net/dsa/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/dsa/Kconfig +1 -1
@@ -5,7 +5,7 @@ source "drivers/net/dsa/b53/Kconfig" config NET_DSA_BCM_SF2 tristate "Broadcom Starfighter 2 Ethernet switch support" - depends on HAS_IOMEM && NET_DSA && OF_MDIO + depends on HAS_IOMEM && NET_DSA select NET_DSA_TAG_BRCM select FIXED_PHY select BCM7XXX_PHY
Signature · 1 line
2.14.1
David Miller
maintainerFrom: Florian Fainelli <[email protected]>
Date: Tue, 17 Jul 2018 08:42:03 -0700
Quoted 5 lines
This patch series drops the
CONFIG_OFdependency that some Broadcom drivers had, this is no longer necessary and goes against allowing build testing on more platforms.Let me know if kbuild or your own builds somehow fail.
Looks good to me, series applied, thanks.