'\" t .\" Title: mdiobus_read_nested .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.11.6 .\" Language: English .\" .TH "MDIOBUS_READ_NESTED" "9" "July 2017" "Kernel Hackers Manual 4\&.11\&" "Network device support" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" mdiobus_read_nested \- Nested version of the mdiobus_read function .SH "SYNOPSIS" .HP \w'int\ mdiobus_read_nested('u .BI "int mdiobus_read_nested(struct\ mii_bus\ *\ " "bus" ", int\ " "addr" ", u32\ " "regnum" ");" .SH "ARGUMENTS" .PP \fIstruct mii_bus * bus\fR .RS 4 the mii_bus struct .RE .PP \fIint addr\fR .RS 4 the phy address .RE .PP \fIu32 regnum\fR .RS 4 register number to read .RE .SH "DESCRIPTION" .PP In case of nested MDIO bus access avoid lockdep false positives by using \fBmutex_lock_nested\fR\&. .SH "NOTE" .PP MUST NOT be called from interrupt context, because the bus read/write functions may wait for an interrupt to conclude the operation\&. .SH "COPYRIGHT" .br