diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2005-11-23 12:49:40 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-01 02:25:26 -0500 |
commit | 350f19632d18e808aa1f2ca96f2be86c67de67ff (patch) | |
tree | c7596345ed0cffe6f3d763cf4bbf113a4b9a4ac3 /drivers/net/ixp2000 | |
parent | c44185d4dcb92384c22e6c01dc09c25adae36a82 (diff) | |
download | linux-350f19632d18e808aa1f2ca96f2be86c67de67ff.tar.gz linux-350f19632d18e808aa1f2ca96f2be86c67de67ff.tar.bz2 linux-350f19632d18e808aa1f2ca96f2be86c67de67ff.zip |
[PATCH] enp2611: report link up/down events
Report carrier going up/down.
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/ixp2000')
-rw-r--r-- | drivers/net/ixp2000/enp2611.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ixp2000/enp2611.c b/drivers/net/ixp2000/enp2611.c index bc29dbeec318..2542e3bacfb9 100644 --- a/drivers/net/ixp2000/enp2611.c +++ b/drivers/net/ixp2000/enp2611.c @@ -152,10 +152,15 @@ static void enp2611_check_link_status(unsigned long __dummy) status = pm3386_is_link_up(i); if (status && !netif_carrier_ok(dev)) { + /* @@@ Should report autonegotiation status. */ + printk(KERN_INFO "%s: NIC Link is Up\n", dev->name); + pm3386_enable_tx(i); caleb_enable_tx(i); netif_carrier_on(dev); } else if (!status && netif_carrier_ok(dev)) { + printk(KERN_INFO "%s: NIC Link is Down\n", dev->name); + netif_carrier_off(dev); caleb_disable_tx(i); pm3386_disable_tx(i); |