1d7e4fd72b
KS8851 selects MICREL_PHY, which depends on PTP_1588_CLOCK_OPTIONAL, so
make KS8851 also depend on PTP_1588_CLOCK_OPTIONAL.
Fixes kconfig warning and build errors:
WARNING: unmet direct dependencies detected for MICREL_PHY
Depends on [m]: NETDEVICES [=y] && PHYLIB [=y] && PTP_1588_CLOCK_OPTIONAL [=m]
Selected by [y]:
- KS8851 [=y] && NETDEVICES [=y] && ETHERNET [=y] && NET_VENDOR_MICREL [=y] && SPI [=y]
ld.lld: error: undefined symbol: ptp_clock_register referenced by micrel.c
net/phy/micrel.o:(lan8814_probe) in archive drivers/built-in.a
ld.lld: error: undefined symbol: ptp_clock_index referenced by micrel.c
net/phy/micrel.o:(lan8814_ts_info) in archive drivers/built-in.a
Reported-by: kernel test robot <lkp@intel.com>
Fixes: ece1950283
("net: phy: micrel: 1588 support for LAN8814 phy")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20220405065936.4105272-1-horatiu.vultur@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
65 lines
1.6 KiB
Plaintext
65 lines
1.6 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Micrel device configuration
|
|
#
|
|
|
|
config NET_VENDOR_MICREL
|
|
bool "Micrel devices"
|
|
default y
|
|
depends on (HAS_IOMEM && DMA_ENGINE) || SPI || PCI || HAS_IOMEM
|
|
help
|
|
If you have a network (Ethernet) card belonging to this class, say Y.
|
|
|
|
Note that the answer to this question doesn't directly affect the
|
|
kernel: saying N will just cause the configurator to skip all
|
|
the questions about Micrel devices. If you say Y, you will be asked
|
|
for your specific card in the following questions.
|
|
|
|
if NET_VENDOR_MICREL
|
|
|
|
config KS8842
|
|
tristate "Micrel KSZ8841/42 with generic bus interface"
|
|
depends on HAS_IOMEM && DMA_ENGINE
|
|
help
|
|
This platform driver is for KSZ8841(1-port) / KS8842(2-port)
|
|
ethernet switch chip (managed, VLAN, QoS) from Micrel or
|
|
Timberdale(FPGA).
|
|
|
|
config KS8851
|
|
tristate "Micrel KS8851 SPI"
|
|
depends on SPI
|
|
depends on PTP_1588_CLOCK_OPTIONAL
|
|
select MII
|
|
select CRC32
|
|
select EEPROM_93CX6
|
|
select PHYLIB
|
|
select MICREL_PHY
|
|
help
|
|
SPI driver for Micrel KS8851 SPI attached network chip.
|
|
|
|
config KS8851_MLL
|
|
tristate "Micrel KS8851 MLL"
|
|
depends on HAS_IOMEM
|
|
depends on PTP_1588_CLOCK_OPTIONAL
|
|
select MII
|
|
select CRC32
|
|
select EEPROM_93CX6
|
|
select PHYLIB
|
|
select MICREL_PHY
|
|
help
|
|
This platform driver is for Micrel KS8851 Address/data bus
|
|
multiplexed network chip.
|
|
|
|
config KSZ884X_PCI
|
|
tristate "Micrel KSZ8841/2 PCI"
|
|
depends on PCI
|
|
select MII
|
|
select CRC32
|
|
help
|
|
This PCI driver is for Micrel KSZ8841/KSZ8842 PCI Ethernet chip.
|
|
|
|
To compile this driver as a module, choose M here. The module
|
|
will be called ksz884x.
|
|
|
|
endif # NET_VENDOR_MICREL
|