I'm using Micrel KSZ8051 and KSZ8031 ethernet Phy devices on my mx53 board.
Linux driver codes for these devices are existing ,but their .config_init , .read_status implementations are calling phy_read and phy_write functions ,
which are calling at the end mdiobus_read and mdiobus_write functions implemented in /linux/drivers/net/phy/mdio_bus.c
For imx we have fec_enet_mdio_read and fec_enet_mdio_write functions in /drivers/net/fec.c
My question is: can we load and use existing micrel kernel modules or should we reimplement them
using fec_enet_mdio_read and fec_enet_mdio_write functions ?
Also I couldn't find any test for fec in BSP imx_test folder ?