提交 cffbfcaf 编写于 作者: L Lennert Buytenhek 提交者: Jeff Garzik

[PATCH] enp2611: disable/enable SERDES carrier on interface down/up

Disable/enable the SERDES carrier when an interface is administratively
downed/upped.
Signed-off-by: NLennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 c6e429bd
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册