]> git.baikalelectronics.ru Git - kernel.git/commit
smsc75xx: mark link down on startup and let PHY interrupt deal with carrier changes
authorSteve Glendinning <steve.glendinning@shawell.net>
Mon, 30 Apr 2012 07:56:50 +0000 (07:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2012 01:52:39 +0000 (21:52 -0400)
commitd7be3103bc402de38dd0f927821b0ab1407af522
tree097e91fb0b406bf15ec3b0f6d89babf31904b54c
parenta5dce5a04601af38623254c0bfc770477ac58dc5
smsc75xx: mark link down on startup and let PHY interrupt deal with carrier changes

This patch fixes the same issue as reported on smsc95xx, where the
usb device is connected with no ethernet cable plugged-in.

Without this patch sysfs reports the cable as present

flag@flag-desktop:~$ cat /sys/class/net/eth0/carrier
1

while it's not:

flag@flag-desktop:~$ sudo mii-tool eth0
eth0: no link

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc75xx.c