summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Einon <mark.einon@gmail.com>2011-09-25 19:17:57 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-26 17:39:17 -0700
commitc28a613316c8b02d4ae4ac1a2548a363b019ae77 (patch)
tree1c926d220504852d56443900ee29b937a4392f12
parent2c2815aee78fc992872617eaeb283e6f164d126a (diff)
staging: et131x: Bugfix - driver doesn't autoreneg after cable unplug/plug events
This driver has a long standing bug where removing and inserting the ethernet cable results in no packets being trnasmitted / received and hence no autonegotiation occurring. Fixed by resetting the rx/tx engines and queue on detecting a cable being removed. Signed-off-by: Mark Einon <mark.einon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/et131x/et131x_initpci.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/et131x/et131x_initpci.c b/drivers/staging/et131x/et131x_initpci.c
index 618f84428a0..e9daa733bea 100644
--- a/drivers/staging/et131x/et131x_initpci.c
+++ b/drivers/staging/et131x/et131x_initpci.c
@@ -544,6 +544,10 @@ static void et131x_adjust_link(struct net_device *netdev)
/* Setup ET1310 as per the documentation */
et131x_adapter_setup(adapter);
+
+ /* perform reset of tx/rx */
+ et131x_disable_txrx(netdev);
+ et131x_enable_txrx(netdev);
}
adapter->link = phydev->link;