diff options
author | Bob Copeland <me@bobcopeland.com> | 2009-01-01 15:01:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:45 -0500 |
commit | 63649b6cf0a964582af2b4d4734e28ca90ec8f5c (patch) | |
tree | 55a46e2cd64271408c8cbd884e4623d32bfe2c7a /drivers/net/wireless/ath5k/base.c | |
parent | 2b8d4e2eea711b6dfe1878ff3c94ebe757656f6d (diff) |
ath5k: support LEDs on Acer Aspire One netbook
Add vendor ID for Foxconn and use it to set the ath5k LED gpio and
polarity for Acer branded laptops.
base.c:
Changes-licensed-under: 3-Clause-BSD
Reported-by: Maxim Levitsky <maximlevitsky@gmail.com>
Tested-by: Maxim Levitsky <maximlevitsky@gmail.com>
Tested-by: Andreas Mohr <andi@lisas.de>
Signed-off-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k/base.c')
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index 88618645a7e4..fdf7733e76e1 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -2596,6 +2596,13 @@ ath5k_init_leds(struct ath5k_softc *sc) | |||
2596 | sc->led_pin = 1; | 2596 | sc->led_pin = 1; |
2597 | sc->led_on = 1; /* active high */ | 2597 | sc->led_on = 1; /* active high */ |
2598 | } | 2598 | } |
2599 | /* Pin 3 on Foxconn chips used in Acer Aspire One (0x105b:e008) */ | ||
2600 | if (pdev->subsystem_vendor == PCI_VENDOR_ID_FOXCONN) { | ||
2601 | __set_bit(ATH_STAT_LEDSOFT, sc->status); | ||
2602 | sc->led_pin = 3; | ||
2603 | sc->led_on = 0; /* active low */ | ||
2604 | } | ||
2605 | |||
2599 | if (!test_bit(ATH_STAT_LEDSOFT, sc->status)) | 2606 | if (!test_bit(ATH_STAT_LEDSOFT, sc->status)) |
2600 | goto out; | 2607 | goto out; |
2601 | 2608 | ||