Skip to content

Commit

Permalink
ath5k: support LED's on emachines E510 notebook
Browse files Browse the repository at this point in the history
Add vendor ID for AMBIT and use it to set the ath5k LED gpio.

base.c:
Changes-licensed-under: 3-Clause-BSD

Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@gmail.com>
Acked-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Tulio Magno Quites Machado Filho authored and John W. Linville committed Jan 29, 2009
1 parent 060210f commit f677d77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 6 additions & 2 deletions drivers/net/wireless/ath5k/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2626,8 +2626,12 @@ ath5k_init_leds(struct ath5k_softc *sc)
sc->led_pin = 1;
sc->led_on = 1; /* active high */
}
/* Pin 3 on Foxconn chips used in Acer Aspire One (0x105b:e008) */
if (pdev->subsystem_vendor == PCI_VENDOR_ID_FOXCONN) {
/*
* Pin 3 on Foxconn chips used in Acer Aspire One (0x105b:e008) and
* in emachines notebooks with AMBIT subsystem.
*/
if (pdev->subsystem_vendor == PCI_VENDOR_ID_FOXCONN ||
pdev->subsystem_vendor == PCI_VENDOR_ID_AMBIT) {
__set_bit(ATH_STAT_LEDSOFT, sc->status);
sc->led_pin = 3;
sc->led_on = 0; /* active low */
Expand Down
2 changes: 2 additions & 0 deletions include/linux/pci_ids.h
Original file line number Diff line number Diff line change
Expand Up @@ -1967,6 +1967,8 @@

#define PCI_VENDOR_ID_SAMSUNG 0x144d

#define PCI_VENDOR_ID_AMBIT 0x1468

#define PCI_VENDOR_ID_MYRICOM 0x14c1

#define PCI_VENDOR_ID_TITAN 0x14D2
Expand Down

0 comments on commit f677d77

Please sign in to comment.