]>
Commit | Line | Data |
---|---|---|
bfaf5c73 GKH |
1 | From 0f9edcdd88a993914fa1d1dc369b35dc503979db Mon Sep 17 00:00:00 2001 |
2 | From: "Vittorio Gambaletta (VittGam)" <linux-wireless@vittgam.net> | |
3 | Date: Mon, 11 Apr 2016 04:48:55 +0200 | |
4 | Subject: ath9k: Fix LED polarity for some Mini PCI AR9220 MB92 cards. | |
5 | ||
6 | From: Vittorio Gambaletta (VittGam) <linux-wireless@vittgam.net> | |
7 | ||
8 | commit 0f9edcdd88a993914fa1d1dc369b35dc503979db upstream. | |
9 | ||
10 | The Wistron DNMA-92 and Compex WLM200NX have inverted LED polarity | |
11 | (active high instead of active low). | |
12 | ||
13 | The same PCI Subsystem ID is used by both cards, which are based on | |
14 | the same Atheros MB92 design. | |
15 | ||
16 | Cc: <linux-wireless@vger.kernel.org> | |
17 | Cc: <ath9k-devel@qca.qualcomm.com> | |
18 | Cc: <ath9k-devel@lists.ath9k.org> | |
19 | Signed-off-by: Vittorio Gambaletta <linuxbugs@vittgam.net> | |
20 | Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com> | |
21 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
22 | ||
23 | --- | |
24 | drivers/net/wireless/ath/ath9k/pci.c | 10 ++++++++++ | |
25 | 1 file changed, 10 insertions(+) | |
26 | ||
27 | --- a/drivers/net/wireless/ath/ath9k/pci.c | |
28 | +++ b/drivers/net/wireless/ath/ath9k/pci.c | |
29 | @@ -28,6 +28,16 @@ static const struct pci_device_id ath_pc | |
30 | { PCI_VDEVICE(ATHEROS, 0x0024) }, /* PCI-E */ | |
31 | { PCI_VDEVICE(ATHEROS, 0x0027) }, /* PCI */ | |
32 | { PCI_VDEVICE(ATHEROS, 0x0029) }, /* PCI */ | |
33 | + | |
34 | +#ifdef CONFIG_ATH9K_PCOEM | |
35 | + /* Mini PCI AR9220 MB92 cards: Compex WLM200NX, Wistron DNMA-92 */ | |
36 | + { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, | |
37 | + 0x0029, | |
38 | + PCI_VENDOR_ID_ATHEROS, | |
39 | + 0x2096), | |
40 | + .driver_data = ATH9K_PCI_LED_ACT_HI }, | |
41 | +#endif | |
42 | + | |
43 | { PCI_VDEVICE(ATHEROS, 0x002A) }, /* PCI-E */ | |
44 | ||
45 | #ifdef CONFIG_ATH9K_PCOEM |