mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-13 14:24:11 +08:00
f99f22e02f
A new user of MSCC_OCELOT_SWITCH_LIB was added, bringing back an old link failure that was fixed withe5f3155267
("ethernet: fix PTP_1588_CLOCK dependencies"): x86_64-linux-ld: drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_ptp_enable': ocelot_ptp.c:(.text+0x8ee): undefined reference to `ptp_find_pin' x86_64-linux-ld: drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_get_ts_info': ocelot_ptp.c:(.text+0xd5d): undefined reference to `ptp_clock_index' x86_64-linux-ld: drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_init_timestamp': ocelot_ptp.c:(.text+0x15ca): undefined reference to `ptp_clock_register' x86_64-linux-ld: drivers/net/ethernet/mscc/ocelot_ptp.o: in function `ocelot_deinit_timestamp': ocelot_ptp.c:(.text+0x16b7): undefined reference to `ptp_clock_unregister' Add the same PTP dependency here, as well as in the MSCC_OCELOT_SWITCH_LIB symbol itself to make it more obvious what is going on when the next driver selects it. Fixes:3d7316ac81
("net: dsa: ocelot: add external ocelot switch control") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Colin Foster <colin.foster@in-advantage.com> Link: https://lore.kernel.org/r/20230209124435.1317781-1-arnd@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
# SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
config NET_VENDOR_MICROSEMI
|
|
bool "Microsemi devices"
|
|
default y
|
|
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 Microsemi devices.
|
|
|
|
if NET_VENDOR_MICROSEMI
|
|
|
|
# Users should depend on NET_SWITCHDEV, HAS_IOMEM, BRIDGE
|
|
config MSCC_OCELOT_SWITCH_LIB
|
|
depends on PTP_1588_CLOCK_OPTIONAL
|
|
select NET_DEVLINK
|
|
select REGMAP_MMIO
|
|
select PACKING
|
|
select PHYLINK
|
|
tristate
|
|
help
|
|
This is a hardware support library for Ocelot network switches. It is
|
|
used by switchdev as well as by DSA drivers.
|
|
|
|
config MSCC_OCELOT_SWITCH
|
|
tristate "Ocelot switch driver"
|
|
depends on PTP_1588_CLOCK_OPTIONAL
|
|
depends on BRIDGE || BRIDGE=n
|
|
depends on NET_SWITCHDEV
|
|
depends on HAS_IOMEM
|
|
depends on OF
|
|
select MSCC_OCELOT_SWITCH_LIB
|
|
select GENERIC_PHY
|
|
help
|
|
This driver supports the Ocelot network switch device as present on
|
|
the Ocelot SoCs (VSC7514).
|
|
|
|
endif # NET_VENDOR_MICROSEMI
|