diff options
author | Andrew Lunn <andrew@lunn.ch> | 2016-06-04 21:17:06 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-04 14:29:54 -0700 |
commit | b516d453239551d7916d5e35bc68823ed5b55f98 (patch) | |
tree | e396194da850c63c821337de50bc0f878a9c7b4e /drivers/net/dsa/mv88e6xxx.h | |
parent | net: dsa: mv88e6xxx: Rename _phy_ to _mdio_ (diff) | |
download | linux-dev-b516d453239551d7916d5e35bc68823ed5b55f98.tar.xz linux-dev-b516d453239551d7916d5e35bc68823ed5b55f98.zip |
net: dsa: mv88e6xxx: Refactor MDIO so driver registers mdio bus
Have the switch driver register its own MDIO bus. This allows for an
mdio property in the device tree, with child nodes for phys, which
can be referenced via phandles, etc.
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mv88e6xxx.h')
-rw-r--r-- | drivers/net/dsa/mv88e6xxx.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/dsa/mv88e6xxx.h b/drivers/net/dsa/mv88e6xxx.h index 36d0e1504de1..8221c3c7ec5a 100644 --- a/drivers/net/dsa/mv88e6xxx.h +++ b/drivers/net/dsa/mv88e6xxx.h @@ -600,6 +600,12 @@ struct mv88e6xxx_priv_state { /* set to size of eeprom if supported by the switch */ int eeprom_len; + + /* Device node for the MDIO bus */ + struct device_node *mdio_np; + + /* And the MDIO bus itself */ + struct mii_bus *mdio_bus; }; enum stat_type { |