Skip to contentSkip to conversation

phylib: give mdio buses a device tree presence

RFC PATCH In review Lennert Buytenhek 1 participant 1 message Oct 2, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover phylib: give mdio buses a device tree presence

This patch series hooks up mdio buses (struct mii_bus) into the device tree, so that they show up in sysfs and can be found by walking the device tree.

The main intended user for this is the DSA switch driver, but there might be other uses as well.

Changes between v1 and v2:
- Add back accidentally deleted error handling from drivers/net/phy/mdio-bitbang.c (Andy Fleming).
- Deal with mdiobus_register() after mdiobus_unregister() properly.
- Make phy_read()/phy_write() inline functions and move them to include/linux/phy.h (Trent Piepho, Andy Fleming).
- Fix compilation of tc35815.