Skip to content

Commit

Permalink
staging: et131x: Bugfix - driver doesn't autoreneg after cable unplug…
Browse files Browse the repository at this point in the history
…/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>
  • Loading branch information
Mark Einon authored and Greg Kroah-Hartman committed Sep 27, 2011
1 parent 2c2815a commit c28a613
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/staging/et131x/et131x_initpci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c28a613

Please sign in to comment.