- int mdiobus_write_nested(struct mii_bus * bus, int addr, u32 regnum, u16 val);
- the mii_bus struct
- the phy address
- register number to write
- value to write to regnum
In case of nested MDIO bus access avoid lockdep false positives by using mutex_lock_nested.
MUST NOT be called from interrupt context, because the bus read/write functions may wait for an interrupt to conclude the operation.