diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0164-smsc95xx-mark-link-down-on-startup-and-let-PHY-inter.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0164-smsc95xx-mark-link-down-on-startup-and-let-PHY-inter.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0164-smsc95xx-mark-link-down-on-startup-and-let-PHY-inter.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0164-smsc95xx-mark-link-down-on-startup-and-let-PHY-inter.patch new file mode 100644 index 00000000..01c337de --- /dev/null +++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.17/0164-smsc95xx-mark-link-down-on-startup-and-let-PHY-inter.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | From 0f1ae32284c0946f9ea7acabb3177ac20b22b9e5 Mon Sep 17 00:00:00 2001 | ||
2 | From: Paolo Pisati <paolo.pisati@canonical.com> | ||
3 | Date: Mon, 23 Apr 2012 04:05:20 +0000 | ||
4 | Subject: [PATCH 164/165] smsc95xx: mark link down on startup and let PHY | ||
5 | interrupt deal with carrier changes | ||
6 | |||
7 | commit 07d69d4238418746a7b85c5d05ec17c658a2a390 upstream. | ||
8 | |||
9 | Without this patch sysfs reports the cable as present | ||
10 | |||
11 | flag@flag-desktop:~$ cat /sys/class/net/eth0/carrier | ||
12 | 1 | ||
13 | |||
14 | while it's not: | ||
15 | |||
16 | flag@flag-desktop:~$ sudo mii-tool eth0 | ||
17 | eth0: no link | ||
18 | |||
19 | Tested on my Beagle XM. | ||
20 | |||
21 | v2: added mantainer to the list of recipient | ||
22 | |||
23 | Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com> | ||
24 | Acked-by: Steve Glendinning <steve.glendinning@shawell.net> | ||
25 | Signed-off-by: David S. Miller <davem@davemloft.net> | ||
26 | Signed-off-by: Ben Hutchings <ben@decadent.org.uk> | ||
27 | --- | ||
28 | drivers/net/usb/smsc95xx.c | 2 +- | ||
29 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
30 | |||
31 | diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c | ||
32 | index eff6767..55b3218 100644 | ||
33 | --- a/drivers/net/usb/smsc95xx.c | ||
34 | +++ b/drivers/net/usb/smsc95xx.c | ||
35 | @@ -1190,7 +1190,7 @@ static const struct driver_info smsc95xx_info = { | ||
36 | .rx_fixup = smsc95xx_rx_fixup, | ||
37 | .tx_fixup = smsc95xx_tx_fixup, | ||
38 | .status = smsc95xx_status, | ||
39 | - .flags = FLAG_ETHER | FLAG_SEND_ZLP, | ||
40 | + .flags = FLAG_ETHER | FLAG_SEND_ZLP | FLAG_LINK_INTR, | ||
41 | }; | ||
42 | |||
43 | static const struct usb_device_id products[] = { | ||
44 | -- | ||
45 | 1.7.7.6 | ||
46 | |||