提交 4bed5395 编写于 作者: A Arnd Bergmann 提交者: David S. Miller

mvneta: add FIXED_PHY dependency

The fixed_phy infrastructure is done in a way that is optional,
by providing 'static inline' helper functions doing nothing in
include/linux/phy_fixed.h for all its APIs. However, three out
of the four users (DSA, BCMGENET, and SYSTEMPORT) always
'select FIXED_PHY', presumably because they need that.
MVNETA is the fourth one, and if that is built-in but FIXED_PHY
is configured as a loadable module, we get a link error:

drivers/built-in.o: In function `mvneta_fixed_link_update':
fpga-mgr.c:(.text+0x33ed80): undefined reference to `fixed_phy_update_state'

Presumably this driver has the same dependency as the others,
so this patch also uses 'select' to ensure that the fixed-phy
support is built-in.
Signed-off-by: NArnd Bergmann <arnd@arndb.de>
Fixes: 898b2970 ("mvneta: implement SGMII-based in-band link state signaling")
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 cfb76d77
...@@ -44,6 +44,7 @@ config MVNETA ...@@ -44,6 +44,7 @@ config MVNETA
tristate "Marvell Armada 370/38x/XP network interface support" tristate "Marvell Armada 370/38x/XP network interface support"
depends on PLAT_ORION depends on PLAT_ORION
select MVMDIO select MVMDIO
select FIXED_PHY
---help--- ---help---
This driver supports the network interface units in the This driver supports the network interface units in the
Marvell ARMADA XP, ARMADA 370 and ARMADA 38x SoC family. Marvell ARMADA XP, ARMADA 370 and ARMADA 38x SoC family.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册