* [PATCH] ath5k: support LED's on emachines E510 notebok
@ 2009-01-25 20:14 Tulio Magno Quites Machado Filho
2009-01-25 21:20 ` [ath5k-devel] " Bob Copeland
0 siblings, 1 reply; 4+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2009-01-25 20:14 UTC (permalink / raw)
To: linville; +Cc: linux-wireless, ath5k-devel, Tulio Magno Quites Machado Filho
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>
---
drivers/net/wireless/ath5k/base.c | 8 ++++++--
include/linux/pci_ids.h | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c
index 57971a9..180518c 100644
--- a/drivers/net/wireless/ath5k/base.c
+++ b/drivers/net/wireless/ath5k/base.c
@@ -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 */
diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h
index 02e6046..402ab74 100644
--- a/include/linux/pci_ids.h
+++ b/include/linux/pci_ids.h
@@ -836,6 +836,8 @@
#define PCI_VENDOR_ID_FOXCONN 0x105b
+#define PCI_VENDOR_ID_AMBIT 0x1468
+
#define PCI_VENDOR_ID_UMC 0x1060
#define PCI_DEVICE_ID_UMC_UM8673F 0x0101
#define PCI_DEVICE_ID_UMC_UM8886BF 0x673a
--
1.6.0.2
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [ath5k-devel] [PATCH] ath5k: support LED's on emachines E510 notebok
2009-01-25 20:14 [PATCH] ath5k: support LED's on emachines E510 notebok Tulio Magno Quites Machado Filho
@ 2009-01-25 21:20 ` Bob Copeland
2009-01-25 21:33 ` Tulio Magno Quites Machado Filho
0 siblings, 1 reply; 4+ messages in thread
From: Bob Copeland @ 2009-01-25 21:20 UTC (permalink / raw)
To: Tulio Magno Quites Machado Filho; +Cc: linville, ath5k-devel, linux-wireless
On Sun, Jan 25, 2009 at 09:14:21PM +0100, Tulio Magno Quites Machado Filho wrote:
> Add vendor ID for AMBIT and use it to set the ath5k LED gpio.
Thanks!
> #define PCI_VENDOR_ID_FOXCONN 0x105b
>
> +#define PCI_VENDOR_ID_AMBIT 0x1468
> +
Can you put the vendor id in order? The file is supposed to be
sorted by vendor id, then by device id in order to reduce merge
conflicts.
With that change, feel free to add my:
Acked-by: Bob Copeland <me@bobcopeland.com>
--
Bob Copeland %% www.bobcopeland.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: support LED's on emachines E510 notebok
2009-01-25 21:20 ` [ath5k-devel] " Bob Copeland
@ 2009-01-25 21:33 ` Tulio Magno Quites Machado Filho
2009-01-25 21:56 ` Bob Copeland
0 siblings, 1 reply; 4+ messages in thread
From: Tulio Magno Quites Machado Filho @ 2009-01-25 21:33 UTC (permalink / raw)
To: Bob Copeland; +Cc: linville, ath5k-devel, linux-wireless
On Sun, Jan 25, 2009 at 10:20 PM, Bob Copeland <me@bobcopeland.com> wrote:
> Can you put the vendor id in order? The file is supposed to be
> sorted by vendor id, then by device id in order to reduce merge
> conflicts.
Sorry... I haven't seen that.
After the changes, should I submit them as a new mail? And to all lists?
> With that change, feel free to add my:
>
> Acked-by: Bob Copeland <me@bobcopeland.com>
Ok!
Thanks,
--
Tulio Magno
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: support LED's on emachines E510 notebok
2009-01-25 21:33 ` Tulio Magno Quites Machado Filho
@ 2009-01-25 21:56 ` Bob Copeland
0 siblings, 0 replies; 4+ messages in thread
From: Bob Copeland @ 2009-01-25 21:56 UTC (permalink / raw)
To: Tulio Magno Quites Machado Filho; +Cc: linville, ath5k-devel, linux-wireless
On Sun, Jan 25, 2009 at 10:33:54PM +0100, Tulio Magno Quites Machado Filho wrote:
> Sorry... I haven't seen that.
> After the changes, should I submit them as a new mail? And to all lists?
Sure, just resend the whole, corrected patch to everyone. For small
changes like this, you can make a note of it before the diffstat like
so:
Signed-off-by: ...
---
v2: fixed order of pci_ids.h
drivers/net/wireless/ath5k/base.c | 8 ++++++--
include/linux/pci_ids.h | 2 ++
2 files changed, 8 insertions(+), 2 deletions(-)
diff ...
Anything between that first '---' and the patch gets thrown away when
the patch is applied, but it helps upstream (John) know what changed.
--
Bob Copeland %% www.bobcopeland.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-25 21:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-25 20:14 [PATCH] ath5k: support LED's on emachines E510 notebok Tulio Magno Quites Machado Filho
2009-01-25 21:20 ` [ath5k-devel] " Bob Copeland
2009-01-25 21:33 ` Tulio Magno Quites Machado Filho
2009-01-25 21:56 ` Bob Copeland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).