mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-27 12:21:18 +00:00
net: ethernet: Add missing depends on MDIO_DEVRES
A number of MDIO drivers make use of devm_mdiobus_alloc_size(). This is only available when CONFIG_MDIO_DEVRES is enabled. Add missing depends or selects, depending on if there are circular dependencies or not. This avoids linker errors, especially for randconfig builds. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Link: https://lore.kernel.org/r/20230409150204.2346231-1-andrew@lunn.ch Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
ed72bd5a67
commit
37f9b2a6c0
@ -71,6 +71,7 @@ config FSL_XGMAC_MDIO
|
|||||||
tristate "Freescale XGMAC MDIO"
|
tristate "Freescale XGMAC MDIO"
|
||||||
select PHYLIB
|
select PHYLIB
|
||||||
depends on OF
|
depends on OF
|
||||||
|
select MDIO_DEVRES
|
||||||
select OF_MDIO
|
select OF_MDIO
|
||||||
help
|
help
|
||||||
This driver supports the MDIO bus on the Fman 10G Ethernet MACs, and
|
This driver supports the MDIO bus on the Fman 10G Ethernet MACs, and
|
||||||
|
@ -10,6 +10,7 @@ config FSL_ENETC_CORE
|
|||||||
config FSL_ENETC
|
config FSL_ENETC
|
||||||
tristate "ENETC PF driver"
|
tristate "ENETC PF driver"
|
||||||
depends on PCI_MSI
|
depends on PCI_MSI
|
||||||
|
select MDIO_DEVRES
|
||||||
select FSL_ENETC_CORE
|
select FSL_ENETC_CORE
|
||||||
select FSL_ENETC_IERB
|
select FSL_ENETC_IERB
|
||||||
select FSL_ENETC_MDIO
|
select FSL_ENETC_MDIO
|
||||||
|
@ -34,6 +34,7 @@ config MV643XX_ETH
|
|||||||
config MVMDIO
|
config MVMDIO
|
||||||
tristate "Marvell MDIO interface support"
|
tristate "Marvell MDIO interface support"
|
||||||
depends on HAS_IOMEM
|
depends on HAS_IOMEM
|
||||||
|
select MDIO_DEVRES
|
||||||
select PHYLIB
|
select PHYLIB
|
||||||
help
|
help
|
||||||
This driver supports the MDIO interface found in the network
|
This driver supports the MDIO interface found in the network
|
||||||
|
@ -52,6 +52,7 @@ config QCOM_EMAC
|
|||||||
depends on HAS_DMA && HAS_IOMEM
|
depends on HAS_DMA && HAS_IOMEM
|
||||||
select CRC32
|
select CRC32
|
||||||
select PHYLIB
|
select PHYLIB
|
||||||
|
select MDIO_DEVRES
|
||||||
help
|
help
|
||||||
This driver supports the Qualcomm Technologies, Inc. Gigabit
|
This driver supports the Qualcomm Technologies, Inc. Gigabit
|
||||||
Ethernet Media Access Controller (EMAC). The controller
|
Ethernet Media Access Controller (EMAC). The controller
|
||||||
|
@ -65,6 +65,7 @@ config MDIO_ASPEED
|
|||||||
tristate "ASPEED MDIO bus controller"
|
tristate "ASPEED MDIO bus controller"
|
||||||
depends on ARCH_ASPEED || COMPILE_TEST
|
depends on ARCH_ASPEED || COMPILE_TEST
|
||||||
depends on OF_MDIO && HAS_IOMEM
|
depends on OF_MDIO && HAS_IOMEM
|
||||||
|
depends on MDIO_DEVRES
|
||||||
help
|
help
|
||||||
This module provides a driver for the independent MDIO bus
|
This module provides a driver for the independent MDIO bus
|
||||||
controllers found in the ASPEED AST2600 SoC. This is a driver for the
|
controllers found in the ASPEED AST2600 SoC. This is a driver for the
|
||||||
@ -170,6 +171,7 @@ config MDIO_IPQ4019
|
|||||||
tristate "Qualcomm IPQ4019 MDIO interface support"
|
tristate "Qualcomm IPQ4019 MDIO interface support"
|
||||||
depends on HAS_IOMEM && OF_MDIO
|
depends on HAS_IOMEM && OF_MDIO
|
||||||
depends on COMMON_CLK
|
depends on COMMON_CLK
|
||||||
|
depends on MDIO_DEVRES
|
||||||
help
|
help
|
||||||
This driver supports the MDIO interface found in Qualcomm
|
This driver supports the MDIO interface found in Qualcomm
|
||||||
IPQ40xx, IPQ60xx, IPQ807x and IPQ50xx series Soc-s.
|
IPQ40xx, IPQ60xx, IPQ807x and IPQ50xx series Soc-s.
|
||||||
@ -178,6 +180,7 @@ config MDIO_IPQ8064
|
|||||||
tristate "Qualcomm IPQ8064 MDIO interface support"
|
tristate "Qualcomm IPQ8064 MDIO interface support"
|
||||||
depends on HAS_IOMEM && OF_MDIO
|
depends on HAS_IOMEM && OF_MDIO
|
||||||
depends on MFD_SYSCON
|
depends on MFD_SYSCON
|
||||||
|
depends on MDIO_DEVRES
|
||||||
help
|
help
|
||||||
This driver supports the MDIO interface found in the network
|
This driver supports the MDIO interface found in the network
|
||||||
interface units of the IPQ8064 SoC
|
interface units of the IPQ8064 SoC
|
||||||
|
Loading…
Reference in New Issue
Block a user