Thread (1 message) 1 message, 1 author, 2016-11-15

Re: [PATCH] ath9k: Move generic entries below specific ones in ath_pci_id_table.

From: Valo, Kalle <hidden>
Date: 2016-11-15 14:49:22
Also in: stable

"Vittorio Gambaletta (VittGam)" [off-list ref] writes:
Hello,

On 12/10/2016 17:01:08 CEST, Valo, Kalle wrote:
quoted
So to tell the full story I'll change the commit log to something like
below. Does it look ok to you?
Yes; but I'd change "So" to "This turned out to be wrong", and add a note
about changing the order for 0x002A too:

----------------------------------------------------------------------
ath9k: Really fix LED polarity for some Mini PCI AR9220 MB92 cards.

The active_high LED of my Wistron DNMA-92 is still being recognized as
active_low on 4.7.6 mainline. When I was preparing my former commit
0f9edcdd88a9 ("ath9k: Fix LED polarity for some Mini PCI AR9220 MB92
cards.") to fix that I must have somehow messed up with testing, because
I tested the final version of that patch before sending it, and it was
apparently working; but now it is not working on 4.7.6 mainline.

I initially added the PCI_DEVICE_SUB section for 0x0029/0x2096 above the
PCI_VDEVICE section for 0x0029; but then I moved the former below the
latter after seeing how 0x002A sections were sorted in the file.

This turned out to be wrong: if a generic PCI_VDEVICE entry (that has
both subvendor and subdevice IDs set to PCI_ANY_ID) is put before a more
specific one (PCI_DEVICE_SUB), then the generic PCI_VDEVICE entry will
match first and will be used.

With this patch, 0x0029/0x2096 has finally got active_high LED on 4.7.6.

While I'm at it, let's fix 0x002A too by also moving its generic definiti=
on
below its specific ones.

Fixes: 0f9edcdd88a9 ("ath9k: Fix LED polarity for some Mini PCI AR9220 MB=
92 cards.")
Cc: <redacted> #4.7+
Signed-off-by: Vittorio Gambaletta <redacted>
[kvalo@qca.qualcomm.com: improve the commit log based on email discussion=
s]
Signed-off-by: Kalle Valo <redacted>
----------------------------------------------------------------------
Thanks, I updated the commit with your changes.

--=20
Kalle Valo=
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help