Skip to content

RFC ath9k: AR9220 mini PCI card with inverted LED polarity

Vittorio Gambaletta (VittGam) ath9k-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ath9k: Add a module parameter to invert LED polarity.drivers/net/wireless/ath/ath9k/init.c+7 -00 replies
2/2ath9k: Fix LED polarity for some Mini PCI AR9220 MB92 cards.drivers/net/wireless/ath/ath9k/pci.c+10 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [ath9k-devel] [PATCH RFC 0/2] ath9k: AR9220 mini PCI card with inverted LED polarity

Hello,

I've got a Wistron DNMA-92 (AR9220) card that has inverted LED polarity (active high instead of active low).

It has PCI ID 168c:0029, Subsystem ID 168c:2096.

The problem is that it has the same Subsystem ID of the Compex WLM200NX [0]. The two cards share the same Atheros MB92 design, but I don't know if that other card has an inverted LED too. Its datasheet unfortunately doesn't say anything about the LED.

So, what should I do now?

1) Add a new PCOEM PCI_DEVICE_SUB entry to pci.c with .driver_data set to ATH9K_PCI_LED_ACT_HI, with the risk of reversing the polarity for the other card (in case it is actually active low);
2) Add a new module parameter, ath9k_led_active_high, so that I can

    handle my card in my /etc/modprobe.d/*.conf file;

3) Both, since the module parameter could be useful anyway ;)

(By the way, after the mail server problem I've actually created the patches, so this is an RFC now!)

Cheers,
Vittorio G

[0] https://wikidevi.com/wiki/Compex_WLM200NX