net: phy: Allow pre-declaration of MDIO devices
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 4 Feb 2017 21:02:44 +0000 (13:02 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 7 Feb 2017 15:51:46 +0000 (10:51 -0500)
commit648ea0134069cda7d4940f397bcc6901fb88752a
tree2e898d9c56777f31708c0292170eae5d76c13882
parent71e0bbde0d88047f66b25721f69a441d46083748
net: phy: Allow pre-declaration of MDIO devices

Allow board support code to collect pre-declarations for MDIO devices by
registering them with mdiobus_register_board_info(). SPI and I2C buses
have a similar feature, we were missing this for MDIO devices, but this
is particularly useful for e.g: MDIO-connected switches which need to
provide their port layout (often board-specific) to a MDIO Ethernet
switch driver.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/Makefile
drivers/net/phy/mdio-boardinfo.c [new file with mode: 0644]
drivers/net/phy/mdio-boardinfo.h [new file with mode: 0644]
drivers/net/phy/mdio_bus.c
drivers/net/phy/mdio_device.c
include/linux/mdio.h
include/linux/mod_devicetable.h
include/linux/phy.h