public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] common/cmd_mii.c bug and patch
@ 2004-12-29  4:34 Andrew Dyer
  2005-09-24 20:01 ` Wolfgang Denk
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Dyer @ 2004-12-29  4:34 UTC (permalink / raw)
  To: u-boot

The mii info command (the !CONFIG_TERSE_MII version)
has a bug in current cvs. If the phy address is passed
to the command the code assigns the variable addr to start,
instead of the values of addrlo which is extracted from the
command line.  At that point in the code addr is always 0.

to demonstrate find a board with a phy at a non-zero address,
compare the results of 'mii info' and mii info 1' (substitute
the phy address on the test board for 1).

Also in this file on lines 55 and 418 there are two places
where a call to mii_init() is conditionally compiled in, but 
one condition includes defined(CONFIG_MCF52x2) and the
other doesn't.  Is this intentional?




-- 
Hardware, n.:
        The parts of a computer system that can be kicked.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: uboot-mii-info-patch.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20041228/1e83566e/attachment.txt 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-24 20:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-29  4:34 [U-Boot-Users] common/cmd_mii.c bug and patch Andrew Dyer
2005-09-24 20:01 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox