Commit adee8b77 authored by Antonio Borneo's avatar Antonio Borneo Committed by Bernd Eckenfels

mii-tool: dump also non standard registers

Read and dump all registers, including those not listed
in linux/mii.h.
Signed-off-by: default avatarAntonio Borneo <borneo.antonio@gmail.com>
parent 784f0afe
......@@ -43,6 +43,11 @@ status for each interface.
\fB\-v\fR, \fB\-\-verbose\fR
Display more detailed MII status information. If used twice, also
display raw MII register contents.
.br
\fBAlert:\fR If used three times, will force reading all MII
registers, including non standard ones. It's not guaranteed any
valid answer from PHY while PHY communication can even hang.
With driver e1000e will fail while reading register 0x07.
.TP
\fB\-V\fR, \fB\-\-version\fR
Display program version information.
......
......@@ -270,7 +270,10 @@ int show_basic_mii(int sock, int phy_id)
mii_val[i] = mdio_read(sock, i);
break;
default:
mii_val[i] = 0;
if (verbose > 2)
mii_val[i] = mdio_read(sock, i);
else
mii_val[i] = 0;
break;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment