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)
commitd69d169493463e6b1da9a1965d35126e479aa27f
tree6853221cbea62c9d745b17e5581e057b3846d344
parentf00e35e259948b995aa1f3ee7fddb05f34a50157
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