提交 07d69d42 编写于 作者: P Paolo Pisati 提交者: David S. Miller

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: NPaolo Pisati <paolo.pisati@canonical.com>
Acked-by: NSteve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 1bb57e94
...@@ -1192,7 +1192,7 @@ static const struct driver_info smsc95xx_info = { ...@@ -1192,7 +1192,7 @@ static const struct driver_info smsc95xx_info = {
.rx_fixup = smsc95xx_rx_fixup, .rx_fixup = smsc95xx_rx_fixup,
.tx_fixup = smsc95xx_tx_fixup, .tx_fixup = smsc95xx_tx_fixup,
.status = smsc95xx_status, .status = smsc95xx_status,
.flags = FLAG_ETHER | FLAG_SEND_ZLP, .flags = FLAG_ETHER | FLAG_SEND_ZLP | FLAG_LINK_INTR,
}; };
static const struct usb_device_id products[] = { static const struct usb_device_id products[] = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册