net: freescale: select CONFIG_FIXED_PHY where needed
authorArnd Bergmann <arnd@arndb.de>
Sat, 9 May 2020 12:04:52 +0000 (14:04 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 May 2020 22:47:21 +0000 (15:47 -0700)
commit99352c79af3e5f2e4724abf37fa5a2a3299b1c81
treef59b35e7687ec7965575fcff2ab1f9b91d9cf480
parent57644431a6c2faac5d754ebd35780cf43a531b1a
net: freescale: select CONFIG_FIXED_PHY where needed

I ran into a randconfig build failure with CONFIG_FIXED_PHY=m
and CONFIG_GIANFAR=y:

x86_64-linux-ld: drivers/net/ethernet/freescale/gianfar.o:(.rodata+0x418): undefined reference to `fixed_phy_change_carrier'

It seems the same thing can happen with dpaa and ucc_geth, so change
all three to do an explicit 'select FIXED_PHY'.

The fixed-phy driver actually has an alternative stub function that
theoretically allows building network drivers when fixed-phy is
disabled, but I don't see how that would help here, as the drivers
presumably would not work then.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/Kconfig
drivers/net/ethernet/freescale/dpaa/Kconfig