[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1464260491.2726.11.camel@googlemail.com>
Date: Thu, 26 May 2016 13:01:31 +0200
From: Christoph Fritz <chf.fritz@...glemail.com>
To: Andrew Lunn <andrew@...n.ch>
Cc: Steve Glendinning <steve.glendinning@...well.net>,
netdev@...r.kernel.org, Florian Fainelli <f.fainelli@...il.com>
Subject: Re: usbnet: smsc95xx: fix link detection for disabled
autonegotiation
On Thu, 2016-05-26 at 04:31 +0200, Andrew Lunn wrote:
> On Thu, May 26, 2016 at 04:06:47AM +0200, Christoph Fritz wrote:
> > To detect link status up/down for connections where autonegotiation is
> > explicitly disabled, we don't get an irq but need to poll the status
> > register for link up/down detection.
> > This patch adds a workqueue to poll for link status.
>
> Did you consider using the phylib? It probably does the needed polling
> already, and it looks like the functions needed to implement an MDIO
> bus are already in place.
smsc95xx supports a relative wide range of PHYs which I don't have
access to in regard of testing. So I prefer the least invasive one (with
this patch) as mostly all of the other usbnet drivers do.
A merge to phylib while paying attention to all the suspend modes and
testing the wide range of PHYs would surely be the right thing to do.
Any thoughts on that?
Thanks
-- Christoph
Powered by blists - more mailing lists