net: Rework some symbol dependencies
PATCH 1/1 net: Rework some symbol dependencies
As exposed by "make randconfig", we have a few dependency issues with some network drivers:
- Both HIFEMAC_ETH and HIGMACV300_ETH functionally require both DM and OF_CONTROL. Further, HIFEMAC_ETH needs DM_CLK not just CLK to be selected.
- BNXT_ETH deals with it's PCI requirement in a backwards way. The symbol PCI_INIT_R is board specific, PCI alone is required to build.
---
Cc: Jerome Forissier <[email protected]>
--- drivers/net/Kconfig | 3 +++ drivers/net/bnxt/Kconfig | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
drivers/net/Kconfig +3 -0
@@ -979,7 +979,9 @@ source "drivers/net/mtk_eth/Kconfig" config HIFEMAC_ETH bool "HiSilicon Fast Ethernet Controller" + depends on DM && OF_CONTROL select CLK + select DM_CLK select DM_RESET select PHYLIB help
@@ -996,6 +998,7 @@ config HIFEMAC_MDIO config HIGMACV300_ETH bool "HiSilicon Gigabit Ethernet Controller" + depends on DM && OF_CONTROL select DM_RESET select PHYLIB help
drivers/net/bnxt/Kconfig +1 -1
@@ -1,6 +1,6 @@ config BNXT_ETH bool "BNXT PCI support" - select PCI_INIT_R + depends on PCI help This driver implements support for bnxt pci controller driver of ethernet class.
Signature · 1 line
2.43.0
Jerome Forissier
AppliedQuoted 43 lines · Tom Rini
As exposed by "make randconfig", we have a few dependency issues with some network drivers:
- BothHIFEMAC_ETHandHIGMACV300_ETHfunctionally require both DM andOF_CONTROL. Further,HIFEMAC_ETHneedsDM_CLKnot just CLK to be selected.
-BNXT_ETHdeals with it's PCI requirement in a backwards way. The symbolPCI_INIT_Ris board specific, PCI alone is required to build.Signed-off-by Tom Rini <[email protected]>---
Cc: Jerome Forissier <[email protected]>--- drivers/net/Kconfig | 3 +++ drivers/net/bnxt/Kconfig | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)drivers/net/Kconfig +3
-0@@ -979,7 +979,9 @@ source "drivers/net/mtk_eth/Kconfig" config HIFEMAC_ETH bool "HiSilicon Fast Ethernet Controller" + depends on DM && OF_CONTROL select CLK + select DM_CLK select DM_RESET select PHYLIB help@@ -996,6 +998,7 @@ config HIFEMAC_MDIO config HIGMACV300_ETH bool "HiSilicon Gigabit Ethernet Controller" + depends on DM && OF_CONTROL select DM_RESET select PHYLIB helpdrivers/net/bnxt/Kconfig +0
-0
drivers/net/bnxt/Kconfig line 6
Quoted 7 lines
drivers/net/bnxt/Kconfig +1
-1@@ -1,6 +1,6 @@ config BNXT_ETH bool "BNXT PCI support" - select PCI_INIT_R + depends on PCI help This driver implements support for bnxt pci controller driver of ethernet class.
Queued for net-next, thanks!
Signature · 1 line
Jerome