Re: usbnet: smsc95xx: fix link detection for disabled autonegotiation

2016-05-30 Thread Christoph Fritz
On Sun, 2016-05-29 at 22:30 -0700, David Miller wrote: > From: Christoph Fritz <chf.fr...@googlemail.com> > Date: Thu, 26 May 2016 04:06:47 +0200 > > > @@ -1695,6 +1745,7 @@ static int smsc95xx_resume(struct usb_interface *intf) > > > > /* do this first to

Re: usbnet: smsc95xx: fix link detection for disabled autonegotiation

2016-05-26 Thread Christoph Fritz
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 > > regi

usbnet: smsc95xx: fix link detection for disabled autonegotiation

2016-05-25 Thread Christoph Fritz
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. Signed-off-by: Christoph Fritz <chf.fr...@googlemail.