netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] net: Drop OF dependency for some Broadcom drivers
@ 2018-07-17 15:42 Florian Fainelli
  2018-07-17 15:42 ` [PATCH net-next 1/3] net: phy: Drop OF dependency for MDIO_BCM_UNIMAC Florian Fainelli
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Florian Fainelli @ 2018-07-17 15:42 UTC (permalink / raw)
  To: netdev; +Cc: davem, Florian Fainelli

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(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH net-next 1/3] net: phy: Drop OF dependency for MDIO_BCM_UNIMAC
  2018-07-17 15:42 [PATCH net-next 0/3] net: Drop OF dependency for some Broadcom drivers Florian Fainelli
@ 2018-07-17 15:42 ` Florian Fainelli
  2018-07-17 15:42 ` [PATCH net-next 2/3] net: ethernet: broadcom: Drop dependency on OF Florian Fainelli
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Florian Fainelli @ 2018-07-17 15:42 UTC (permalink / raw)
  To: netdev; +Cc: davem, Florian Fainelli

The driver builds fine even with CONFIG_OF=n since we now have stubs that are
provided.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/net/phy/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
index ceede09a2845..27718f64ba91 100644
--- a/drivers/net/phy/Kconfig
+++ b/drivers/net/phy/Kconfig
@@ -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
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH net-next 2/3] net: ethernet: broadcom: Drop dependency on OF
  2018-07-17 15:42 [PATCH net-next 0/3] net: Drop OF dependency for some Broadcom drivers Florian Fainelli
  2018-07-17 15:42 ` [PATCH net-next 1/3] net: phy: Drop OF dependency for MDIO_BCM_UNIMAC Florian Fainelli
@ 2018-07-17 15:42 ` Florian Fainelli
  2018-07-17 15:42 ` [PATCH net-next 3/3] net: dsa: Drop OF dependency for BCM_SF2 Florian Fainelli
  2018-07-18 20:54 ` [PATCH net-next 0/3] net: Drop OF dependency for some Broadcom drivers David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: Florian Fainelli @ 2018-07-17 15:42 UTC (permalink / raw)
  To: netdev; +Cc: davem, Florian Fainelli

Both 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.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/net/ethernet/broadcom/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/broadcom/Kconfig b/drivers/net/ethernet/broadcom/Kconfig
index 4c3bfde6e8de..b7aa8ad96dfb 100644
--- a/drivers/net/ethernet/broadcom/Kconfig
+++ b/drivers/net/ethernet/broadcom/Kconfig
@@ -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
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH net-next 3/3] net: dsa: Drop OF dependency for BCM_SF2
  2018-07-17 15:42 [PATCH net-next 0/3] net: Drop OF dependency for some Broadcom drivers Florian Fainelli
  2018-07-17 15:42 ` [PATCH net-next 1/3] net: phy: Drop OF dependency for MDIO_BCM_UNIMAC Florian Fainelli
  2018-07-17 15:42 ` [PATCH net-next 2/3] net: ethernet: broadcom: Drop dependency on OF Florian Fainelli
@ 2018-07-17 15:42 ` Florian Fainelli
  2018-07-18 20:54 ` [PATCH net-next 0/3] net: Drop OF dependency for some Broadcom drivers David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: Florian Fainelli @ 2018-07-17 15:42 UTC (permalink / raw)
  To: netdev; +Cc: davem, Florian Fainelli

NET_DSA_BCM_SF2 does not need to depend on CONFIG_OF anymore since we have
stubs when that option is disabled.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/net/dsa/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/dsa/Kconfig b/drivers/net/dsa/Kconfig
index 733653d8359a..549247966a70 100644
--- a/drivers/net/dsa/Kconfig
+++ b/drivers/net/dsa/Kconfig
@@ -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
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH net-next 0/3] net: Drop OF dependency for some Broadcom drivers
  2018-07-17 15:42 [PATCH net-next 0/3] net: Drop OF dependency for some Broadcom drivers Florian Fainelli
                   ` (2 preceding siblings ...)
  2018-07-17 15:42 ` [PATCH net-next 3/3] net: dsa: Drop OF dependency for BCM_SF2 Florian Fainelli
@ 2018-07-18 20:54 ` David Miller
  3 siblings, 0 replies; 5+ messages in thread
From: David Miller @ 2018-07-18 20:54 UTC (permalink / raw)
  To: f.fainelli; +Cc: netdev

From: Florian Fainelli <f.fainelli@gmail.com>
Date: Tue, 17 Jul 2018 08:42:03 -0700

> 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.

Looks good to me, series applied, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-07-18 21:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-17 15:42 [PATCH net-next 0/3] net: Drop OF dependency for some Broadcom drivers Florian Fainelli
2018-07-17 15:42 ` [PATCH net-next 1/3] net: phy: Drop OF dependency for MDIO_BCM_UNIMAC Florian Fainelli
2018-07-17 15:42 ` [PATCH net-next 2/3] net: ethernet: broadcom: Drop dependency on OF Florian Fainelli
2018-07-17 15:42 ` [PATCH net-next 3/3] net: dsa: Drop OF dependency for BCM_SF2 Florian Fainelli
2018-07-18 20:54 ` [PATCH net-next 0/3] net: Drop OF dependency for some Broadcom drivers David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).