[Armadeus-commitlog] armadeus branch, master, updated. release-3.3-1-gf20db58
Brought to you by:
sszy
|
From: Nicolas <th...@us...> - 2010-08-01 15:38:45
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "armadeus".
The branch, master has been updated
via f20db589db076737da92e8e9fd31bd2d0961626d (commit)
from d2c0a4daf0614bdd1b94e9f02131ce4c1d0bf69f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f20db589db076737da92e8e9fd31bd2d0961626d
Author: nicolas colombain <nic...@ar...>
Date: Sun Aug 1 17:38:03 2010 +0200
[KERNEL] fix fec_old ifconfig up/down bug #66
-----------------------------------------------------------------------
Summary of changes:
...f27-armadeus-fec-old_ifconfig_up_down_fix.patch | 47 ++++++++++++++++++++
1 files changed, 47 insertions(+), 0 deletions(-)
create mode 100644 buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/362-apf27-armadeus-fec-old_ifconfig_up_down_fix.patch
diff --git a/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/362-apf27-armadeus-fec-old_ifconfig_up_down_fix.patch b/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/362-apf27-armadeus-fec-old_ifconfig_up_down_fix.patch
new file mode 100644
index 0000000..816c3a8
--- /dev/null
+++ b/buildroot/target/device/armadeus/linux/kernel-patches/2.6.29/362-apf27-armadeus-fec-old_ifconfig_up_down_fix.patch
@@ -0,0 +1,47 @@
+Index: linux-2.6.29/drivers/net/fec_old.c
+===================================================================
+--- linux-2.6.29.orig/drivers/net/fec_old.c 2009-04-02 11:36:05.000000000 +0200
++++ linux-2.6.29/drivers/net/fec_old.c 2009-04-02 11:40:55.000000000 +0200
+@@ -2692,6 +2692,8 @@ static int fec_enet_open(struct net_devi
+ fep->sequence_done = 0;
+ fep->link = 0;
+
++ fec_restart(dev, 1);
++
+ if (fep->phy) {
+ mii_do_cmd(dev, fep->phy->ack_int);
+ mii_do_cmd(dev, fep->phy->config);
+@@ -2708,18 +2710,14 @@ static int fec_enet_open(struct net_devi
+ schedule();
+
+ mii_do_cmd(dev, fep->phy->startup);
+-
+- /* Set the initial link state to true. A lot of hardware
+- * based on this device does not implement a PHY interrupt,
+- * so we are never notified of link change.
+- */
+- fep->link = 1;
+- } else {
+- fep->link = 1; /* lets just try it and see */
+- /* no phy, go full duplex, it's most likely a hub chip */
+- fec_restart(dev, 1);
+ }
++ /* Set the initial link state to true. A lot of hardware
++ * based on this device does not implement a PHY interrupt,
++ * so we are never notified of link change.
++ */
++ fep->link = 1;
+
++ netif_start_queue(dev);
+ fep->opened = 1;
+ return 0; /* Success */
+ }
+@@ -3137,8 +3135,6 @@ static void fec_restart(struct net_devic
+ */
+ fecp->fec_ecntrl = 2;
+ fecp->fec_r_des_active = 0x01000000;
+-
+- netif_start_queue(dev);
+ }
+
+ static void fec_stop(struct net_device *dev)
hooks/post-receive
--
armadeus
|