Scroll to navigation

MDIOBUS_READ_NESTED(9) Network device support MDIOBUS_READ_NESTED(9)

NAME

mdiobus_read_nested - Nested version of the mdiobus_read function

SYNOPSIS

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

ARGUMENTS

struct mii_bus * bus

the mii_bus struct

int addr

the phy address

u32 regnum

register number to read

DESCRIPTION

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.

COPYRIGHT

June 2017 Kernel Hackers Manual 4.11