mdiobus_read_nested(9)

mdiobus_read_nested9

Nested version of the mdiobus_read function

Usage

int mdiobus_read_nested(struct mii_bus * bus, int addr, u32 regnum);

Arguments

bus

the mii_bus struct

addr

the phy address

regnum

register number to read

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.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.