]> git.baikalelectronics.ru Git - kernel.git/commit
smsc95xx: mark link down on startup and let PHY interrupt deal with carrier changes
authorPaolo Pisati <paolo.pisati@canonical.com>
Mon, 23 Apr 2012 04:05:20 +0000 (04:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Apr 2012 09:56:03 +0000 (05:56 -0400)
commit1d4f948c522db92a23fe71cc1c474567c1411a96
tree65a0f6e2b58debfffbc5bee57ef8807eb685f3b6
parent2612eb70fcceb70a0a52bf0305b8475edfe7377e
smsc95xx: mark link down on startup and let PHY interrupt deal with carrier changes

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>
drivers/net/usb/smsc95xx.c