diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-02-04 13:02:44 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-02-07 10:51:46 -0500 |
commit | 648ea0134069cda7d4940f397bcc6901fb88752a (patch) | |
tree | 2e898d9c56777f31708c0292170eae5d76c13882 /include/linux/mod_devicetable.h | |
parent | 71e0bbde0d88047f66b25721f69a441d46083748 (diff) | |
download | blackbird-op-linux-648ea0134069cda7d4940f397bcc6901fb88752a.tar.gz blackbird-op-linux-648ea0134069cda7d4940f397bcc6901fb88752a.zip |
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>
Diffstat (limited to 'include/linux/mod_devicetable.h')
-rw-r--r-- | include/linux/mod_devicetable.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h index 8a57f0b1242d..8850fcaf50db 100644 --- a/include/linux/mod_devicetable.h +++ b/include/linux/mod_devicetable.h @@ -501,6 +501,7 @@ struct platform_device_id { kernel_ulong_t driver_data; }; +#define MDIO_NAME_SIZE 32 #define MDIO_MODULE_PREFIX "mdio:" #define MDIO_ID_FMT "%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d%d" |