This patch set removes the mdio bus registration and phy access functions from the Ethernet driver. The mdio bus is registered independently. The Ethernet driver then finds the mii device by name to have access to the PHYs. Since the mdio bus requires to be reset, a reset function is added to the mii_device structure. The reset function is called when a PHY is connected by the Ethernet driver. Renaud Barbier (5): phylib: bus reset function FSL mdio bus support gianfar update FSL mdio: configuration and build file P2020rdb: eTSEC2 support arch/ppc/boards/freescale-p2020rdb/p2020rdb.c | 25 ++++- arch/ppc/include/asm/fsl_mdio.h | 11 ++ arch/ppc/mach-mpc85xx/eth-devices.c | 14 +-- arch/ppc/mach-mpc85xx/include/mach/gianfar.h | 2 + drivers/net/Kconfig | 5 + drivers/net/Makefile | 1 + drivers/net/fsl_mdio.c | 134 +++++++++++++++++++++++++ drivers/net/gianfar.c | 127 ++++-------------------- drivers/net/gianfar.h | 3 +- drivers/net/phy/phy.c | 3 + include/miidev.h | 1 + 11 files changed, 204 insertions(+), 122 deletions(-) create mode 100644 arch/ppc/include/asm/fsl_mdio.h create mode 100644 drivers/net/fsl_mdio.c _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox