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