[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1340131500.2692.34.camel@bwh-desktop.uk.solarflarecom.com>
Date: Tue, 19 Jun 2012 19:45:00 +0100
From: Ben Hutchings <bhutchings@...arflare.com>
To: Aníbal Almeida Pinto <anibal.pinto@...cec.com>
CC: <netdev@...r.kernel.org>
Subject: Re: [RFC] micrel KSZ8041 disable auto negotiation with fiber
On Tue, 2012-06-19 at 18:53 +0100, Aníbal Almeida Pinto wrote:
> Em Ter 19 Jun 2012 18:08:29 WEST, Ben Hutchings escreveu:
> > On Tue, 2012-06-19 at 15:45 +0100, Aníbal Almeida Pinto wrote:
> >> Hi,
> >>
> >> I am working on a custom board based on a OMAP L138 with a KSZ8041TL-FTL
> >> phy that have fibber and copper support.
[...]
> > The net driver or PHY driver needs to disable autoneg by default when
> > connected to fibre, and reject attempts to turn it on.
> >
> > As for *how* the driver is supposed to know whether that's the case, I
> > have no idea...
>
> On this chip you have a pin where you can specify if is fibber or
> copper, at power up it cleat/set the bit of auto negotiation.
>
> The driver can save the bit state after phy power up or reset, and with
> that validate if is copper or fibber.
>
> In the case of fibber shouldn't allow change the auto negotiation.
So presumably the problem is where to put this logic?
It looks like you'll be using the davinci_emac net driver, which uses
phylib (i.e. separate PHY drivers) so you need to change ks8041_driver
and related functions in drivers/net/phy/micrel.c.
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