Convenience function for reading a given mii mgmt register
int mdiobus_read(struct mii_bus * bus, int addr, u32 regnum);
bus
the mii_bus struct
addr
the phy address
regnum
register number to read
MUST NOT be called from interrupt context, because the bus read/write functions may wait for an interrupt to conclude the operation.