[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1341762656.25597.230.camel@deadeye.wl.decadent.org.uk>
Date: Sun, 8 Jul 2012 16:50:56 +0100
From: Ben Hutchings <bhutchings@...arflare.com>
To: <michael@...sch.at>
CC: Christian Riesch <christian.riesch@...cron.at>,
<netdev@...r.kernel.org>, Oliver Neukum <oneukum@...e.de>,
Eric Dumazet <edumazet@...gle.com>,
Allan Chou <allan@...x.com.tw>,
Mark Lord <kernel@...savvy.com>,
Grant Grundler <grundler@...omium.org>,
Ming Lei <tom.leiming@...il.com>
Subject: Re: [PATCH 4/4] asix: Add a new driver for the AX88172A
On Sun, 2012-07-08 at 17:39 +0200, Michael Riesch wrote:
> On Fri, 2012-07-06 at 18:37 +0100, Ben Hutchings wrote:
> > > + priv->mdio->priv = (void *)dev;
> > > + priv->mdio->read = &asix_mdio_bus_read;
> > > + priv->mdio->write = &asix_mdio_bus_write;
> > > + priv->mdio->name = "Asix MDIO Bus";
> > > + snprintf(priv->mdio->id, MII_BUS_ID_SIZE, "asix-%s",
> > > + dev_name(dev->net->dev.parent));
> > [...]
> >
> > I think you need to ensure that the bus identifier is unique throughout
> > its lifetime, but net devices can be renamed and that could lead to a
> > collision. Perhaps you could use the ifindex or the USB device path
>
> Ben,
>
> the dev_name function in the code above returns the sysfs filename of
> the USB device (e.g. 1-0:1.0).
[...]
Sorry, I didn't read that carefully enough.
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists