diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2005-11-23 06:49:51 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-01 02:25:27 -0500 |
commit | df86550602f320d28fdaeb577c25f9821525bfa0 (patch) | |
tree | babe84aafa5f1dda0849d87954f76d6b844e1d28 /drivers/net/ixp2000/pm3386.c | |
parent | 0b85c0ebde63a41d57b6214977ac2752bf5a086f (diff) |
[PATCH] pm3386: add hook for setting carrier
Add a pm3386 hook for disabling/enabling the SERDES carrier, so that
we can disable it when the interface is administratively downed, and
enable it when it is upped.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/ixp2000/pm3386.c')
-rw-r--r-- | drivers/net/ixp2000/pm3386.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ixp2000/pm3386.c b/drivers/net/ixp2000/pm3386.c index 870b486f5dea..ec70b1d553e3 100644 --- a/drivers/net/ixp2000/pm3386.c +++ b/drivers/net/ixp2000/pm3386.c | |||
@@ -250,6 +250,11 @@ void pm3386_get_stats(int port, struct net_device_stats *stats) | |||
250 | /* @@@ Add other stats. */ | 250 | /* @@@ Add other stats. */ |
251 | } | 251 | } |
252 | 252 | ||
253 | void pm3386_set_carrier(int port, int state) | ||
254 | { | ||
255 | pm3386_port_reg_write(port, 0x703, 0x10, state ? 0x1001 : 0x0000); | ||
256 | } | ||
257 | |||
253 | int pm3386_is_link_up(int port) | 258 | int pm3386_is_link_up(int port) |
254 | { | 259 | { |
255 | u16 temp; | 260 | u16 temp; |