]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.5.7/ath9k-fix-led-polarity-for-some-mini-pci-ar9220-mb92-cards.patch
Linux 4.14.95
[thirdparty/kernel/stable-queue.git] / releases / 4.5.7 / ath9k-fix-led-polarity-for-some-mini-pci-ar9220-mb92-cards.patch
CommitLineData
bfaf5c73
GKH
1From 0f9edcdd88a993914fa1d1dc369b35dc503979db Mon Sep 17 00:00:00 2001
2From: "Vittorio Gambaletta (VittGam)" <linux-wireless@vittgam.net>
3Date: Mon, 11 Apr 2016 04:48:55 +0200
4Subject: ath9k: Fix LED polarity for some Mini PCI AR9220 MB92 cards.
5
6From: Vittorio Gambaletta (VittGam) <linux-wireless@vittgam.net>
7
8commit 0f9edcdd88a993914fa1d1dc369b35dc503979db upstream.
9
10The Wistron DNMA-92 and Compex WLM200NX have inverted LED polarity
11(active high instead of active low).
12
13The same PCI Subsystem ID is used by both cards, which are based on
14the same Atheros MB92 design.
15
16Cc: <linux-wireless@vger.kernel.org>
17Cc: <ath9k-devel@qca.qualcomm.com>
18Cc: <ath9k-devel@lists.ath9k.org>
19Signed-off-by: Vittorio Gambaletta <linuxbugs@vittgam.net>
20Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
21Signed-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