[U-Boot-Users] Re: parse bug in cmd_mii.c
Andrew Dyer
amdyer at gmail.com
Sun Mar 12 04:56:22 CET 2006
CHANGELOG
* When looping over the PHY register address for the mii info
command, loop exit count is incorrect in the CONFIG_TERSE_MII
version of do_mii().
Patch by Andrew Dyer <amdyer at gmail.com>, Sat Mar 11 21:54:52 CST 2006
Signed-off-by: Andrew Dyer <amdyer at gmail.com>
Index: cmd_mii.c
===================================================================
RCS file: /home/cvsroot/Projects/u-boot/common/cmd_mii.c,v
retrieving revision 1.1.1.5
retrieving revision 1.8
diff -u -r1.1.1.5 -r1.8
--- cmd_mii.c 7 Feb 2006 09:51:23 -0000 1.1.1.5
+++ cmd_mii.c 12 Mar 2006 03:33:56 -0000 1.8
@@ -101,7 +106,7 @@
start = 0; end = 31;
}
- for (j = start; j < end; j++) {
+ for (j = start; j <= end; j++) {
if (miiphy_info (devname, j, &oui, &model, &rev) == 0) {
printf ("PHY 0x%02X: "
"OUI = 0x%04X, "
--
Hardware, n.:
The parts of a computer system that can be kicked.
More information about the U-Boot
mailing list