Re: [RFC PATCH 13/16] net: dsa: mv88e6xxx: Refactor MDIO so driver registers mdio bus

2016-05-27 Thread Vivien Didelot
Hi Andrew, I like the s/phy/mdio/ renaming, but please move it in its own non-functional patch for easier reviewing. Also, we may want to use this opportunity to get rid of some _ prefixed functions. It is hard to following the distinction between these two following signatures: int

[RFC PATCH 13/16] net: dsa: mv88e6xxx: Refactor MDIO so driver registers mdio bus

2016-05-26 Thread Andrew Lunn
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 --- drivers/net/dsa/mv88e6xxx.c | 204