Skip to content

Commit

Permalink
[PATCH] enp2611: disable/enable SERDES carrier on interface down/up
Browse files Browse the repository at this point in the history
Disable/enable the SERDES carrier when an interface is administratively
downed/upped.

Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Lennert Buytenhek authored and Jeff Garzik committed Dec 1, 2005
1 parent c6e429b commit cffbfca
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/ixp2000/enp2611.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,15 @@ static void enp2611_set_port_admin_status(int port, int up)
{
if (up) {
caleb_enable_rx(port);

pm3386_set_carrier(port, 1);
pm3386_enable_rx(port);
} else {
caleb_disable_tx(port);
pm3386_disable_tx(port);
/* @@@ Flush out pending packets. */
pm3386_set_carrier(port, 0);

pm3386_disable_rx(port);
caleb_disable_rx(port);
}
Expand Down

0 comments on commit cffbfca

Please sign in to comment.