diff options
author | Stephen Hemminger <shemminger@osdl.org> | 2005-08-16 23:01:05 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-08-16 23:03:13 +0200 |
commit | 54cfb5aa0f4859bd38706eabe0118175780a542f (patch) | |
tree | 336c9f1db0834e0d542c019f1844ebb85ba2000e /drivers | |
parent | [PATCH] skge: increase receive flush threshold default (diff) | |
download | linux-54cfb5aa0f4859bd38706eabe0118175780a542f.tar.xz linux-54cfb5aa0f4859bd38706eabe0118175780a542f.zip |
[PATCH] skge: turn on link status LED
Turn on the link status LED when link comes up.
Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/skge.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/skge.c b/drivers/net/skge.c index 38fc66a1e14c..48a43b84ea5f 100644 --- a/drivers/net/skge.c +++ b/drivers/net/skge.c @@ -42,7 +42,7 @@ #include "skge.h" #define DRV_NAME "skge" -#define DRV_VERSION "0.8" +#define DRV_VERSION "0.9" #define PFX DRV_NAME " " #define DEFAULT_TX_RING_SIZE 128 @@ -876,6 +876,9 @@ static int skge_rx_fill(struct skge_port *skge) static void skge_link_up(struct skge_port *skge) { + skge_write8(skge->hw, SK_REG(skge->port, LNK_LED_REG), + LED_BLK_OFF|LED_SYNC_OFF|LED_ON); + netif_carrier_on(skge->netdev); if (skge->tx_avail > MAX_SKB_FRAGS + 1) netif_wake_queue(skge->netdev); @@ -894,6 +897,7 @@ static void skge_link_up(struct skge_port *skge) static void skge_link_down(struct skge_port *skge) { + skge_write8(skge->hw, SK_REG(skge->port, LNK_LED_REG), LED_OFF); netif_carrier_off(skge->netdev); netif_stop_queue(skge->netdev); |