summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-03-16 19:24:23 -0600
committerJerome Forissier <[email protected]>2026-03-31 16:43:28 +0200
commit6b5d2990f4951dc832cc162790a8baea5a8715ce (patch)
treec7e9506e5226db9fe5e61fe4dfccaa3e9c73166a
parent6dae594af33197e28a2c21e137e67b7cd1bde67d (diff)
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. Signed-off-by: Tom Rini <[email protected]>
-rw-r--r--drivers/net/Kconfig3
-rw-r--r--drivers/net/bnxt/Kconfig2
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig
index cd07b117a5f..02063ce3aa9 100644
--- a/drivers/net/Kconfig
+++ b/drivers/net/Kconfig
@@ -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
diff --git a/drivers/net/bnxt/Kconfig b/drivers/net/bnxt/Kconfig
index 6ff3ffa137b..e25ed479678 100644
--- a/drivers/net/bnxt/Kconfig
+++ b/drivers/net/bnxt/Kconfig
@@ -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.