smsc95xx: mark link down on startup and let PHY interrupt deal with carrier changes
commit75d9d200008ac250e1922c5c7be35acd25e87813
authorPaolo Pisati <paolo.pisati@canonical.com>
Mon, 23 Apr 2012 04:05:20 +0000 (23 04:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 May 2012 16:39:57 +0000 (21 09:39 -0700)
treeba8966a71610e5407082b522952f29a35b3f7b42
parentbea37381fd9a34c6660e5195d31beea86aa3dda3
smsc95xx: mark link down on startup and let PHY interrupt deal with carrier changes

commit 07d69d4238418746a7b85c5d05ec17c658a2a390 upstream.

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

Tested on my Beagle XM.

v2: added mantainer to the list of recipient

Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Acked-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/smsc95xx.c