diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2009-08-31 03:31:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-01 20:40:35 -0400 |
commit | 10547ae2c01acdace636e23c991b21fef05428b4 (patch) | |
tree | 1ed8172d59c93c533791bb338ba45d4541bde9e1 /drivers/net/sky2.h | |
parent | 89f56d1e91cfa535ccc6cc60e9e12e02682fd972 (diff) |
sky2: fix management of driver LED
Observed by Mike McCormack.
The LED bit here is just a software controlled value used to
turn on one of the LED's on some boards. The register value was wrong,
which could have been causing some power control issues.
Get rid of problematic define use the correct mask.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.h')
-rw-r--r-- | drivers/net/sky2.h | 9 |
1 files changed, 1 insertions, 8 deletions
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 */ |