public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] miiphy.h vs linux/mii.h
@ 2010-05-20  2:25 Mike Frysinger
  2010-05-20  5:20 ` Ben Warren
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2010-05-20  2:25 UTC (permalink / raw)
  To: u-boot

in reviewing some phy code i noticed that there's quite a good bit of 
duplication between miiphy.h and linux/mii.h.  i imagine this is largely 
historical as miiphy.h dates back quite a long time, but moving forward, 
should we just do a mass conversion from the u-boot specific miiphy.h defines 
to the more common linux/mii.h defines ?  should be easy to do for most with a 
few sed statements ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100519/2f50e4f9/attachment.pgp 

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

* [U-Boot] miiphy.h vs linux/mii.h
  2010-05-20  2:25 [U-Boot] miiphy.h vs linux/mii.h Mike Frysinger
@ 2010-05-20  5:20 ` Ben Warren
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Warren @ 2010-05-20  5:20 UTC (permalink / raw)
  To: u-boot

Hi Mike,

On Wed, May 19, 2010 at 7:25 PM, Mike Frysinger <vapier@gentoo.org> wrote:

> in reviewing some phy code i noticed that there's quite a good bit of
> duplication between miiphy.h and linux/mii.h.  i imagine this is largely
> historical as miiphy.h dates back quite a long time, but moving forward,
> should we just do a mass conversion from the u-boot specific miiphy.h
> defines
> to the more common linux/mii.h defines ?  should be easy to do for most
> with a
> few sed statements ...
> -mike
>

I started down this path a while ago and then got distracted...  When I last
checked, the linux/mii.h was quite out of date wrt the kernel.org version,
so if doing this we should update first.  I agree that the current state is
confusing and that miiphy is mainly a subset of linux.mii, with the same
numbers but different mnemonics.  Like you say, a simple sed script should
do the trick.

regards,
Ben

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

end of thread, other threads:[~2010-05-20  5:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-20  2:25 [U-Boot] miiphy.h vs linux/mii.h Mike Frysinger
2010-05-20  5:20 ` Ben Warren

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