1
0
Fork 0
alistair23-linux/arch/arm/mach-orion5x
Arnd Bergmann d43e85b7d7 ARM: orion5x: only call into phylib when available
Board code cannot call mdiobus_register_board_info() when phylib
or mdio_device is a loadable module:

arch/arm/plat-orion/common.o: In function `orion_ge00_switch_init':
:(.init.text+0x474): undefined reference to `mdiobus_register_board_info'

I had a number of ideas for how this could be solved, but after the MDIO
code got split out from PHYLIB it has gotten too hard, so I'm basically
giving up, and only call the mdiobus_register_board_info() function
if the MDIO layer is built-in to avoid the link error. This is similar
to how we handle PHY registration on other ARM platforms.

Fixes: 90eff9096c ("net: phy: Allow splitting MDIO bus/device support from PHYs")
Fixes: 648ea01340 ("net: phy: Allow pre-declaration of MDIO devices")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
2017-03-30 17:30:39 +02:00
..
Kconfig ARM: orion5x: only call into phylib when available 2017-03-30 17:30:39 +02:00
Makefile ARM: orion5x: remove legacy support of ls-chl 2016-11-19 09:14:28 +01:00
board-d2net.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
board-dt.c arm: use of_platform_default_populate() to populate 2016-06-23 15:00:39 -05:00
board-mss2.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
board-rd88f5182.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
bridge-regs.h ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
common.c ARM: orion: Register DSA switch as a MDIO device 2017-02-07 10:51:47 -05:00
common.h ARM: orion: Register DSA switch as a MDIO device 2017-02-07 10:51:47 -05:00
db88f5281-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
dns323-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
irq.c ARM: orion5x: make orion5x_legacy_handle_irq static 2016-06-16 11:57:59 +02:00
irqs.h ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
kurobox_pro-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
ls_hgl-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
mpp.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
mpp.h ARM: orion5x: Fix GPIO enable bits for MPP9 2012-05-08 18:57:21 +00:00
mv2120-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
net2big-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
orion5x.h ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
pci.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
rd88f5181l-fxo-setup.c ARM: orion: Register DSA switch as a MDIO device 2017-02-07 10:51:47 -05:00
rd88f5181l-ge-setup.c ARM: orion: Register DSA switch as a MDIO device 2017-02-07 10:51:47 -05:00
rd88f5182-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
rd88f6183ap-ge-setup.c ARM: orion: Register DSA switch as a MDIO device 2017-02-07 10:51:47 -05:00
terastation_pro2-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
ts78xx-fpga.h ARM: orion5x: ts78xx whitespace cleanups 2012-05-14 18:13:00 +02:00
ts78xx-setup.c ARM: Orion5x: ts78xx: allow rtc-m48t86 to manage it's own resources 2017-02-21 21:22:59 +01:00
ts209-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
ts409-setup.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
tsx09-common.c ARM: orion5x: clean up mach/*.h headers 2015-12-07 18:17:48 +01:00
tsx09-common.h [ARM] Orion: remove code duplication in TS209 and TS409 setup files 2008-06-22 22:44:54 +02:00
wnr854t-setup.c ARM: orion: remove unused wnr854t_switch_plat_data 2017-02-09 16:59:57 -05:00
wrt350n-v2-setup.c ARM: orion: Register DSA switch as a MDIO device 2017-02-07 10:51:47 -05:00