diff options
-rw-r--r-- | drivers/net/sky2.c | 12 | ||||
-rw-r--r-- | drivers/net/sky2.h | 9 |
2 files changed, 7 insertions, 14 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index c7c0a5b7b53a..ba5180a23264 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c | |||
@@ -256,6 +256,9 @@ static void sky2_power_on(struct sky2_hw *hw) | |||
256 | 256 | ||
257 | sky2_read32(hw, B2_GP_IO); | 257 | sky2_read32(hw, B2_GP_IO); |
258 | } | 258 | } |
259 | |||
260 | /* Turn on "driver loaded" LED */ | ||
261 | sky2_write16(hw, B0_CTST, Y2_LED_STAT_ON); | ||
259 | } | 262 | } |
260 | 263 | ||
261 | static void sky2_power_aux(struct sky2_hw *hw) | 264 | static void sky2_power_aux(struct sky2_hw *hw) |
@@ -274,6 +277,9 @@ static void sky2_power_aux(struct sky2_hw *hw) | |||
274 | sky2_write8(hw, B0_POWER_CTRL, | 277 | sky2_write8(hw, B0_POWER_CTRL, |
275 | (PC_VAUX_ENA | PC_VCC_ENA | | 278 | (PC_VAUX_ENA | PC_VCC_ENA | |
276 | PC_VAUX_ON | PC_VCC_OFF)); | 279 | PC_VAUX_ON | PC_VCC_OFF)); |
280 | |||
281 | /* turn off "driver loaded LED" */ | ||
282 | sky2_write16(hw, B0_CTST, Y2_LED_STAT_OFF); | ||
277 | } | 283 | } |
278 | 284 | ||
279 | static void sky2_gmac_reset(struct sky2_hw *hw, unsigned port) | 285 | static void sky2_gmac_reset(struct sky2_hw *hw, unsigned port) |
@@ -1867,9 +1873,6 @@ static int sky2_down(struct net_device *dev) | |||
1867 | sky2_phy_power_down(hw, port); | 1873 | sky2_phy_power_down(hw, port); |
1868 | spin_unlock_bh(&sky2->phy_lock); | 1874 | spin_unlock_bh(&sky2->phy_lock); |
1869 | 1875 | ||
1870 | /* turn off LED's */ | ||
1871 | sky2_write16(hw, B0_Y2LED, LED_STAT_OFF); | ||
1872 | |||
1873 | sky2_tx_reset(hw, port); | 1876 | sky2_tx_reset(hw, port); |
1874 | 1877 | ||
1875 | /* Free any pending frames stuck in HW queue */ | 1878 | /* Free any pending frames stuck in HW queue */ |
@@ -2983,8 +2986,6 @@ static void sky2_reset(struct sky2_hw *hw) | |||
2983 | sky2_write8(hw, B2_TI_CTRL, TIM_STOP); | 2986 | sky2_write8(hw, B2_TI_CTRL, TIM_STOP); |
2984 | sky2_write8(hw, B2_TI_CTRL, TIM_CLR_IRQ); | 2987 | sky2_write8(hw, B2_TI_CTRL, TIM_CLR_IRQ); |
2985 | 2988 | ||
2986 | sky2_write8(hw, B0_Y2LED, LED_STAT_ON); | ||
2987 | |||
2988 | /* Turn off descriptor polling */ | 2989 | /* Turn off descriptor polling */ |
2989 | sky2_write32(hw, B28_DPT_CTRL, DPT_STOP); | 2990 | sky2_write32(hw, B28_DPT_CTRL, DPT_STOP); |
2990 | 2991 | ||
@@ -4601,7 +4602,6 @@ static void __devexit sky2_remove(struct pci_dev *pdev) | |||
4601 | 4602 | ||
4602 | sky2_power_aux(hw); | 4603 | sky2_power_aux(hw); |
4603 | 4604 | ||
4604 | sky2_write16(hw, B0_Y2LED, LED_STAT_OFF); | ||
4605 | sky2_write8(hw, B0_CTST, CS_RST_SET); | 4605 | sky2_write8(hw, B0_CTST, CS_RST_SET); |
4606 | sky2_read8(hw, B0_CTST); | 4606 | sky2_read8(hw, B0_CTST); |
4607 | 4607 | ||
diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h index 73c954712467..34042ff7c121 100644 --- a/drivers/net/sky2.h +++ b/drivers/net/sky2.h | |||
@@ -155,7 +155,7 @@ enum pci_cfg_reg1 { | |||
155 | enum csr_regs { | 155 | enum csr_regs { |
156 | B0_RAP = 0x0000, | 156 | B0_RAP = 0x0000, |
157 | B0_CTST = 0x0004, | 157 | B0_CTST = 0x0004, |
158 | B0_Y2LED = 0x0005, | 158 | |
159 | B0_POWER_CTRL = 0x0007, | 159 | B0_POWER_CTRL = 0x0007, |
160 | B0_ISRC = 0x0008, | 160 | B0_ISRC = 0x0008, |
161 | B0_IMSK = 0x000c, | 161 | B0_IMSK = 0x000c, |
@@ -283,13 +283,6 @@ enum { | |||
283 | CS_RST_SET = 1, /* Set Software reset */ | 283 | CS_RST_SET = 1, /* Set Software reset */ |
284 | }; | 284 | }; |
285 | 285 | ||
286 | /* B0_LED 8 Bit LED register */ | ||
287 | enum { | ||
288 | /* Bit 7.. 2: reserved */ | ||
289 | LED_STAT_ON = 1<<1, /* Status LED on */ | ||
290 | LED_STAT_OFF = 1, /* Status LED off */ | ||
291 | }; | ||
292 | |||
293 | /* B0_POWER_CTRL 8 Bit Power Control reg (YUKON only) */ | 286 | /* B0_POWER_CTRL 8 Bit Power Control reg (YUKON only) */ |
294 | enum { | 287 | enum { |
295 | PC_VAUX_ENA = 1<<7, /* Switch VAUX Enable */ | 288 | PC_VAUX_ENA = 1<<7, /* Switch VAUX Enable */ |