mirror of
https://github.com/torvalds/linux.git
synced 2026-05-02 21:42:42 -04:00
The LIBWX library code is what calls into phylink, so any user of
it has to select CONFIG_PHYLINK at the moment, with NGBEVF missing this:
x86_64-linux-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_nway_reset':
wx_ethtool.c:(.text+0x613): undefined reference to `phylink_ethtool_nway_reset'
x86_64-linux-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_get_link_ksettings':
wx_ethtool.c:(.text+0x62b): undefined reference to `phylink_ethtool_ksettings_get'
x86_64-linux-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_set_link_ksettings':
wx_ethtool.c:(.text+0x643): undefined reference to `phylink_ethtool_ksettings_set'
x86_64-linux-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_get_pauseparam':
wx_ethtool.c:(.text+0x65b): undefined reference to `phylink_ethtool_get_pauseparam'
x86_64-linux-ld: drivers/net/ethernet/wangxun/libwx/wx_ethtool.o: in function `wx_set_pauseparam':
wx_ethtool.c:(.text+0x677): undefined reference to `phylink_ethtool_set_pauseparam'
Add the 'select PHYLINK' line in the libwx option directly so this will
always be enabled for all current and future wangxun drivers, and remove
the now duplicate lines.
Fixes: a0008a3658 ("net: wangxun: add ngbevf build")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20251216213547.115026-1-arnd@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
102 lines
2.8 KiB
Plaintext
102 lines
2.8 KiB
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
#
|
|
# Wangxun network device configuration
|
|
#
|
|
|
|
config NET_VENDOR_WANGXUN
|
|
bool "Wangxun devices"
|
|
default y
|
|
help
|
|
If you have a network (Ethernet) card from Wangxun(R), 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 Wangxun(R) cards. If you say Y, you will
|
|
be asked for your specific card in the following questions.
|
|
|
|
if NET_VENDOR_WANGXUN
|
|
|
|
config LIBWX
|
|
tristate
|
|
depends on PTP_1588_CLOCK_OPTIONAL
|
|
select PAGE_POOL
|
|
select DIMLIB
|
|
select PHYLINK
|
|
help
|
|
Common library for Wangxun(R) Ethernet drivers.
|
|
|
|
config NGBE
|
|
tristate "Wangxun(R) GbE PCI Express adapters support"
|
|
depends on PCI
|
|
depends on PTP_1588_CLOCK_OPTIONAL
|
|
select LIBWX
|
|
help
|
|
This driver supports Wangxun(R) GbE PCI Express family of
|
|
adapters.
|
|
|
|
More specific information on configuring the driver is in
|
|
<file:Documentation/networking/device_drivers/ethernet/wangxun/ngbe.rst>.
|
|
|
|
To compile this driver as a module, choose M here. The module
|
|
will be called ngbe.
|
|
|
|
config TXGBE
|
|
tristate "Wangxun(R) 10/25/40GbE PCI Express adapters support"
|
|
depends on PCI
|
|
depends on COMMON_CLK
|
|
depends on I2C_DESIGNWARE_PLATFORM
|
|
depends on PTP_1588_CLOCK_OPTIONAL
|
|
select MARVELL_10G_PHY
|
|
select REGMAP
|
|
select HWMON if TXGBE=y
|
|
select SFP
|
|
select GPIOLIB
|
|
select GPIOLIB_IRQCHIP
|
|
select PCS_XPCS
|
|
select LIBWX
|
|
help
|
|
This driver supports Wangxun(R) 10/25/40GbE PCI Express family of
|
|
adapters.
|
|
|
|
More specific information on configuring the driver is in
|
|
<file:Documentation/networking/device_drivers/ethernet/wangxun/txgbe.rst>.
|
|
|
|
To compile this driver as a module, choose M here. The module
|
|
will be called txgbe.
|
|
|
|
config TXGBEVF
|
|
tristate "Wangxun(R) 10/25/40G Virtual Function Ethernet support"
|
|
depends on PCI
|
|
depends on PCI_MSI
|
|
depends on PTP_1588_CLOCK_OPTIONAL
|
|
select LIBWX
|
|
help
|
|
This driver supports virtual functions for SP1000A, WX1820AL,
|
|
WX5XXX, WX5XXXAL.
|
|
|
|
This driver was formerly named txgbevf.
|
|
|
|
More specific information on configuring the driver is in
|
|
<file:Documentation/networking/device_drivers/ethernet/wangxun/txgbevf.rst>.
|
|
|
|
To compile this driver as a module, choose M here. MSI-X interrupt
|
|
support is required for this driver to work correctly.
|
|
|
|
config NGBEVF
|
|
tristate "Wangxun(R) GbE Virtual Function Ethernet support"
|
|
depends on PCI_MSI
|
|
depends on PTP_1588_CLOCK_OPTIONAL
|
|
select LIBWX
|
|
help
|
|
This driver supports virtual functions for WX1860, WX1860AL.
|
|
|
|
This driver was formerly named ngbevf.
|
|
|
|
More specific information on configuring the driver is in
|
|
<file:Documentation/networking/device_drivers/ethernet/wangxun/ngbevf.rst>.
|
|
|
|
To compile this driver as a module, choose M here. MSI-X interrupt
|
|
support is required for this driver to work correctly.
|
|
|
|
endif # NET_VENDOR_WANGXUN
|