netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bus id in PHY Abstraction Layer
@ 2007-05-09  8:45 Sascha Hauer
  0 siblings, 0 replies; only message in thread
From: Sascha Hauer @ 2007-05-09  8:45 UTC (permalink / raw)
  To: netdev; +Cc: afleming

Hi,

I made a quick shot to port the at91 network driver to the phy
abstraction layer. While doing so I stumbled upon the
(struct mii_bus)->id field. Currently the network driver registering the
bus has to set this field. au1000_eth.c for example uses 0 or 1. mii-fec.c
uses the id field of the corresponding platform device, which will start
from 0, too. So if a second ethernet driver comes around the id fields
will clash. I think the PAL has to assign the id field instead of the
network driver. Maybe a id convention like "mii_fec.x:yy" where x is a
running number and yy is the phy address would do it. Any opinions about
that?

Sascha

-- 
Pengutronix - Linux Solutions for Science and Industry
Entwicklungszentrum Nord     http://www.pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-09  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-09  8:45 bus id in PHY Abstraction Layer Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).