]> 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)
commit725c7ceacd35f2252cfd4bbce544043925f2d966
tree097e91fb0b406bf15ec3b0f6d89babf31904b54c
parenta1961b739d731cf7e02ce20f57d5a2c4876b272d
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