lkml.org 
[lkml]   [2015]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Ethernet: how to disable gigabit support
On Thu 2015-02-05 14:44:55, Florian Fainelli wrote:
> On 05/02/15 12:25, Pavel Machek wrote:
> > Hi!
> >
> > This happened on more than one project: there's gigabit-capable chip,
> > but the connector is not designed for gigabit speed.
> >
> > I'd like to have speed autonegotiation, but not offer gigabit (as it
> > will not work).
> >
> > Is there way to do that without hacking the kernel? Should mii-tool do
> > that?
>
> Since you use the PHY library, you should be able to do something like
> this in your PHY driver prior to starting the PHY state machine:
>
> phydev->supported &= PHY_BASIC_FEATURES (effectively masking Gigabit
> capability)

Thanks, that did the trick.
Pavel
(But still it would be nice to have a generic way of doing this,
using something like mii-tool.)

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


\
 
 \ /
  Last update: 2015-02-06 15:01    [W:0.071 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site