All of lore.kernel.org
 help / color / mirror / Atom feed
* bitrot in drivers/net/au1000_eth.c
@ 2005-01-28 14:01 Ulrich Eckhardt
  2005-01-28 17:01 ` Pete Popov
  2005-01-30 11:50 ` Ulrich Eckhardt
  0 siblings, 2 replies; 6+ messages in thread
From: Ulrich Eckhardt @ 2005-01-28 14:01 UTC (permalink / raw)
  To: linux-mips

Hi!

I've been debugging a problem in above mentioned file and found several cases 
of redundant, unused or even buggy code in the handling of the MII there. 
Also, there is a comment that suggests that I'm not the only one: 
 * FIXME
 * All of the PHY code really should be detached from the MAC
 * code.

An important point there is that much of the code is in fact not even specific 
to the au1x00 ethernet adapters. I found driver code for the MII I wanted to 
drive in sis900.c, and it looked almost similar to the code in au1x00.c. 
Simply adding the device/vendor IDs to a map and choosing the first of the 
drivers there got my ethernet running.

Now, question is how to proceed. There are basically three ways I would go:
1. Leave it like it is, because someone else is working on it. I'd just post a 
mini-patch that binds my device to an existing driver.
2. Remove the dead/unused parts from au1x00.c, try to restructure and document 
the code so it is easier to maintain in the future.
3. Split off the MII handling code or, better, reuse the facility already 
provided by drivers/net/mii.c. This would mean a significant rewrite of 
au1x00.c, including probably breaking things on the way.

Uli

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

end of thread, other threads:[~2005-01-30 11:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-28 14:01 bitrot in drivers/net/au1000_eth.c Ulrich Eckhardt
2005-01-28 17:01 ` Pete Popov
2005-01-28 17:20   ` Matt Porter
2005-01-28 18:15     ` Pete Popov
2005-01-29 10:04     ` Ulrich Eckhardt
2005-01-30 11:50 ` Ulrich Eckhardt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.