From: Greg Kroah-Hartman Date: Tue, 8 May 2012 00:29:28 +0000 (-0700) Subject: 3.0-stable patches X-Git-Tag: v3.3.6~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5703ef38302ea184cd41cc046ca15343f083c735;p=thirdparty%2Fkernel%2Fstable-queue.git 3.0-stable patches added patches: smsc95xx-mark-link-down-on-startup-and-let-phy-interrupt.patch --- diff --git a/queue-3.0/series b/queue-3.0/series new file mode 100644 index 00000000000..78cc92f8f9e --- /dev/null +++ b/queue-3.0/series @@ -0,0 +1 @@ +smsc95xx-mark-link-down-on-startup-and-let-phy-interrupt.patch diff --git a/queue-3.0/smsc95xx-mark-link-down-on-startup-and-let-phy-interrupt.patch b/queue-3.0/smsc95xx-mark-link-down-on-startup-and-let-phy-interrupt.patch new file mode 100644 index 00000000000..a91b37e2bea --- /dev/null +++ b/queue-3.0/smsc95xx-mark-link-down-on-startup-and-let-phy-interrupt.patch @@ -0,0 +1,44 @@ +From 07d69d4238418746a7b85c5d05ec17c658a2a390 Mon Sep 17 00:00:00 2001 +From: Paolo Pisati +Date: Mon, 23 Apr 2012 04:05:20 +0000 +Subject: smsc95xx: mark link down on startup and let PHY interrupt + deal with carrier changes + +From: Paolo Pisati + +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 +Acked-by: Steve Glendinning +Signed-off-by: David S. Miller +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/net/usb/smsc95xx.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/net/usb/smsc95xx.c ++++ b/drivers/net/usb/smsc95xx.c +@@ -1190,7 +1190,7 @@ static const struct driver_info smsc95xx + .rx_fixup = smsc95xx_rx_fixup, + .tx_fixup = smsc95xx_tx_fixup, + .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[] = {