]> git.baikalelectronics.ru Git - kernel.git/commit
usbnet: smsc95xx: fix link detection for disabled autonegotiation
authorChristoph Fritz <chf.fritz@googlemail.com>
Thu, 26 May 2016 02:06:47 +0000 (04:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 May 2016 21:22:23 +0000 (14:22 -0700)
commitc0bb32545eb4ec2d648a323016de4c92eae2c91f
tree6853221cbea62c9d745b17e5581e057b3846d344
parentc22b0d2a1798d749054118d26cfddc909758e039
usbnet: smsc95xx: fix link detection for disabled autonegotiation

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.fritz@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c