* [PATCH] ath5k: add support for Dell Vostro A860 LED
@ 2009-12-03 13:07 Shahar Or
2009-12-04 19:23 ` John W. Linville
0 siblings, 1 reply; 13+ messages in thread
From: Shahar Or @ 2009-12-03 13:07 UTC (permalink / raw)
To: linux-wireless; +Cc: ath5k-devel, me
From: Shahar Or
Adds support for the WiFi activity LED on the Dell Vostro A860 laptop.
Signed-off-by: Shahar Or
---
--- linux-2.6.31/drivers/net/wireless/ath/ath5k/led.c.orig
2009-12-03 14:57:20.000000000 +0200
+++ linux-2.6.31/drivers/net/wireless/ath/ath5k/led.c 2009-12-03
14:25:30.000000000 +0200
@@ -71,6 +71,8 @@ static const struct pci_device_id ath5k_
{ ATH_SDEVICE(PCI_VENDOR_ID_IBM, 0x058a), ATH_LED(1, 0) },
/* IBM-specific AR5212 (all others) */
{ PCI_VDEVICE(ATHEROS, PCI_DEVICE_ID_ATHEROS_AR5212_IBM),
ATH_LED(0, 0) },
+ /* Dell Vostro A860 (shahar@shahar-or.co.il) */
+ { ATH_SDEVICE(PCI_VENDOR_ID_QMI, 0x0112), ATH_LED(3, 0) },
{ }
};
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-03 13:07 [PATCH] ath5k: add support for Dell Vostro A860 LED Shahar Or
@ 2009-12-04 19:23 ` John W. Linville
2009-12-07 10:05 ` Shahar Or
0 siblings, 1 reply; 13+ messages in thread
From: John W. Linville @ 2009-12-04 19:23 UTC (permalink / raw)
To: Shahar Or; +Cc: linux-wireless, ath5k-devel, me
This patch is whitespace-damaged, you don't have your email address
in the Signed-off-by or From lines (the latter being unnecessary
anyway), and even after I took the time to fix those issues it still
didn't apply.
Feel free to try again...thanks.
JOhn
On Thu, Dec 03, 2009 at 03:07:28PM +0200, Shahar Or wrote:
> From: Shahar Or
>
> Adds support for the WiFi activity LED on the Dell Vostro A860 laptop.
>
> Signed-off-by: Shahar Or
>
> ---
> --- linux-2.6.31/drivers/net/wireless/ath/ath5k/led.c.orig
> 2009-12-03 14:57:20.000000000 +0200
> +++ linux-2.6.31/drivers/net/wireless/ath/ath5k/led.c 2009-12-03
> 14:25:30.000000000 +0200
> @@ -71,6 +71,8 @@ static const struct pci_device_id ath5k_
> { ATH_SDEVICE(PCI_VENDOR_ID_IBM, 0x058a), ATH_LED(1, 0) },
> /* IBM-specific AR5212 (all others) */
> { PCI_VDEVICE(ATHEROS, PCI_DEVICE_ID_ATHEROS_AR5212_IBM),
> ATH_LED(0, 0) },
> + /* Dell Vostro A860 (shahar@shahar-or.co.il) */
> + { ATH_SDEVICE(PCI_VENDOR_ID_QMI, 0x0112), ATH_LED(3, 0) },
> { }
> };
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-04 19:23 ` John W. Linville
@ 2009-12-07 10:05 ` Shahar Or
2009-12-07 21:59 ` John W. Linville
0 siblings, 1 reply; 13+ messages in thread
From: Shahar Or @ 2009-12-07 10:05 UTC (permalink / raw)
To: John W. Linville; +Cc: linux-wireless, ath5k-devel, me
Adds support for the WiFi activity LED on the Dell Vostro A860 laptop.
Signed-off-by: Shahar Or <shahar@shahar-or.co.il>
---
I hope this one is perfect.
--- drivers/net/wireless/ath/ath5k/led.c.orig 2009-12-03
14:57:20.000000000 +0200
+++ drivers/net/wireless/ath/ath5k/led.c 2009-12-03 14:25:30.000000000 +0200
@@ -71,6 +71,8 @@
{ ATH_SDEVICE(PCI_VENDOR_ID_IBM, 0x058a), ATH_LED(1, 0) },
/* IBM-specific AR5212 (all others) */
{ PCI_VDEVICE(ATHEROS, PCI_DEVICE_ID_ATHEROS_AR5212_IBM), ATH_LED(0, 0) },
+ /* Dell Vostro A860 (shahar@shahar-or.co.il) */
+ { ATH_SDEVICE(PCI_VENDOR_ID_QMI, 0x0112), ATH_LED(3, 0) },
{ }
};
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-07 10:05 ` Shahar Or
@ 2009-12-07 21:59 ` John W. Linville
2009-12-08 14:57 ` [ath5k-devel] " Bob Copeland
0 siblings, 1 reply; 13+ messages in thread
From: John W. Linville @ 2009-12-07 21:59 UTC (permalink / raw)
To: Shahar Or; +Cc: linux-wireless, ath5k-devel, me
On Mon, Dec 07, 2009 at 12:05:54PM +0200, Shahar Or wrote:
> Adds support for the WiFi activity LED on the Dell Vostro A860 laptop.
>
> Signed-off-by: Shahar Or <shahar@shahar-or.co.il>
> ---
> I hope this one is perfect.
Well, no, it was still quite whitespace damaged. However this time
I was able to fix it manually and move on with life... :-)
> --- drivers/net/wireless/ath/ath5k/led.c.orig 2009-12-03
> 14:57:20.000000000 +0200
> +++ drivers/net/wireless/ath/ath5k/led.c 2009-12-03 14:25:30.000000000 +0200
> @@ -71,6 +71,8 @@
> { ATH_SDEVICE(PCI_VENDOR_ID_IBM, 0x058a), ATH_LED(1, 0) },
> /* IBM-specific AR5212 (all others) */
> { PCI_VDEVICE(ATHEROS, PCI_DEVICE_ID_ATHEROS_AR5212_IBM), ATH_LED(0, 0) },
> + /* Dell Vostro A860 (shahar@shahar-or.co.il) */
> + { ATH_SDEVICE(PCI_VENDOR_ID_QMI, 0x0112), ATH_LED(3, 0) },
> { }
> };
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-07 21:59 ` John W. Linville
@ 2009-12-08 14:57 ` Bob Copeland
2009-12-08 16:01 ` Luis R. Rodriguez
0 siblings, 1 reply; 13+ messages in thread
From: Bob Copeland @ 2009-12-08 14:57 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: Shahar Or, ath5k-devel, linux-wireless
On Mon, Dec 7, 2009 at 4:59 PM, John W. Linville <linville@tuxdriver.com> wrote:
> On Mon, Dec 07, 2009 at 12:05:54PM +0200, Shahar Or wrote:
>> Adds support for the WiFi activity LED on the Dell Vostro A860 laptop.
>>
>> Signed-off-by: Shahar Or <shahar@shahar-or.co.il>
>> ---
>> I hope this one is perfect.
Thanks for the patch. As for getting a better solution to LEDs, I
trolled through the ACPI spec and code, and while various modules
do set up LED pins, there doesn't seem to be a way to generally
get that information from another module and it appears different
between each vendor. I am by no stretch expert in ACPI stuff
though.
Luis, I've asked this before but maybe you know better now or know
whom to ask on your side. Atheros must have a way on Windows to
figure out the LED pin/polarity -- do you have any idea? Ath9k
uses the SREV but that seems to be insufficient for ath5k judging
by all the quirks.
--
Bob Copeland %% www.bobcopeland.com
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-08 14:57 ` [ath5k-devel] " Bob Copeland
@ 2009-12-08 16:01 ` Luis R. Rodriguez
2009-12-08 16:06 ` John W. Linville
0 siblings, 1 reply; 13+ messages in thread
From: Luis R. Rodriguez @ 2009-12-08 16:01 UTC (permalink / raw)
To: Bob Copeland; +Cc: ath5k-devel, linux-wireless, Shahar Or
On Tue, Dec 8, 2009 at 6:57 AM, Bob Copeland <me@bobcopeland.com> wrote:
> On Mon, Dec 7, 2009 at 4:59 PM, John W. Linville <linville@tuxdriver.com> wrote:
>> On Mon, Dec 07, 2009 at 12:05:54PM +0200, Shahar Or wrote:
>>> Adds support for the WiFi activity LED on the Dell Vostro A860 laptop.
>>>
>>> Signed-off-by: Shahar Or <shahar@shahar-or.co.il>
>>> ---
>>> I hope this one is perfect.
>
> Thanks for the patch. As for getting a better solution to LEDs, I
> trolled through the ACPI spec and code, and while various modules
> do set up LED pins, there doesn't seem to be a way to generally
> get that information from another module and it appears different
> between each vendor. I am by no stretch expert in ACPI stuff
> though.
>
> Luis, I've asked this before but maybe you know better now or know
> whom to ask on your side. Atheros must have a way on Windows to
> figure out the LED pin/polarity -- do you have any idea? Ath9k
> uses the SREV but that seems to be insufficient for ath5k judging
> by all the quirks.
IIRC this is all mapped in the INF file, I thought I had released an
INF file under the ISC license but it seems that's not the case, I can
try to do that if it helps. Anyway, if we can move this sort of map to
userspace it'd be neat as you'd just need a userspace file update.
Only thing is how to do this in a generic way for all wireless drivers
and if this is indeed useful for other drivers.
Luis
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-08 16:01 ` Luis R. Rodriguez
@ 2009-12-08 16:06 ` John W. Linville
2009-12-08 16:30 ` Luis R. Rodriguez
0 siblings, 1 reply; 13+ messages in thread
From: John W. Linville @ 2009-12-08 16:06 UTC (permalink / raw)
To: Luis R. Rodriguez; +Cc: Bob Copeland, ath5k-devel, linux-wireless, Shahar Or
On Tue, Dec 08, 2009 at 08:01:52AM -0800, Luis R. Rodriguez wrote:
> On Tue, Dec 8, 2009 at 6:57 AM, Bob Copeland <me@bobcopeland.com> wrote:
> > On Mon, Dec 7, 2009 at 4:59 PM, John W. Linville <linville@tuxdriver.com> wrote:
> >> On Mon, Dec 07, 2009 at 12:05:54PM +0200, Shahar Or wrote:
> >>> Adds support for the WiFi activity LED on the Dell Vostro A860 laptop.
> >>>
> >>> Signed-off-by: Shahar Or <shahar@shahar-or.co.il>
> >>> ---
> >>> I hope this one is perfect.
> >
> > Thanks for the patch. As for getting a better solution to LEDs, I
> > trolled through the ACPI spec and code, and while various modules
> > do set up LED pins, there doesn't seem to be a way to generally
> > get that information from another module and it appears different
> > between each vendor. I am by no stretch expert in ACPI stuff
> > though.
> >
> > Luis, I've asked this before but maybe you know better now or know
> > whom to ask on your side. Atheros must have a way on Windows to
> > figure out the LED pin/polarity -- do you have any idea? Ath9k
> > uses the SREV but that seems to be insufficient for ath5k judging
> > by all the quirks.
>
> IIRC this is all mapped in the INF file, I thought I had released an
> INF file under the ISC license but it seems that's not the case, I can
> try to do that if it helps. Anyway, if we can move this sort of map to
> userspace it'd be neat as you'd just need a userspace file update.
> Only thing is how to do this in a generic way for all wireless drivers
> and if this is indeed useful for other drivers.
Export something through sysfs and use a udev rule?
John
--
John W. Linville Someday the world will need a hero, and you
linville@tuxdriver.com might be all we have. Be ready.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-08 16:06 ` John W. Linville
@ 2009-12-08 16:30 ` Luis R. Rodriguez
2009-12-18 11:42 ` Shahar Or
0 siblings, 1 reply; 13+ messages in thread
From: Luis R. Rodriguez @ 2009-12-08 16:30 UTC (permalink / raw)
To: John W. Linville; +Cc: Bob Copeland, ath5k-devel, linux-wireless, Shahar Or
On Tue, Dec 8, 2009 at 8:06 AM, John W. Linville <linville@tuxdriver.com> wrote:
> On Tue, Dec 08, 2009 at 08:01:52AM -0800, Luis R. Rodriguez wrote:
>> On Tue, Dec 8, 2009 at 6:57 AM, Bob Copeland <me@bobcopeland.com> wrote:
>> > On Mon, Dec 7, 2009 at 4:59 PM, John W. Linville <linville@tuxdriver.com> wrote:
>> >> On Mon, Dec 07, 2009 at 12:05:54PM +0200, Shahar Or wrote:
>> >>> Adds support for the WiFi activity LED on the Dell Vostro A860 laptop.
>> >>>
>> >>> Signed-off-by: Shahar Or <shahar@shahar-or.co.il>
>> >>> ---
>> >>> I hope this one is perfect.
>> >
>> > Thanks for the patch. As for getting a better solution to LEDs, I
>> > trolled through the ACPI spec and code, and while various modules
>> > do set up LED pins, there doesn't seem to be a way to generally
>> > get that information from another module and it appears different
>> > between each vendor. I am by no stretch expert in ACPI stuff
>> > though.
>> >
>> > Luis, I've asked this before but maybe you know better now or know
>> > whom to ask on your side. Atheros must have a way on Windows to
>> > figure out the LED pin/polarity -- do you have any idea? Ath9k
>> > uses the SREV but that seems to be insufficient for ath5k judging
>> > by all the quirks.
>>
>> IIRC this is all mapped in the INF file, I thought I had released an
>> INF file under the ISC license but it seems that's not the case, I can
>> try to do that if it helps. Anyway, if we can move this sort of map to
>> userspace it'd be neat as you'd just need a userspace file update.
>> Only thing is how to do this in a generic way for all wireless drivers
>> and if this is indeed useful for other drivers.
>
> Export something through sysfs and use a udev rule?
True. Is sysfs the preferred fs nowadays, what about configfs? Or
maybe even udev rule --> nl80211 ?
Luis
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-08 16:30 ` Luis R. Rodriguez
@ 2009-12-18 11:42 ` Shahar Or
2009-12-18 15:37 ` Luis R. Rodriguez
0 siblings, 1 reply; 13+ messages in thread
From: Shahar Or @ 2009-12-18 11:42 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: John W. Linville, Bob Copeland, ath5k-devel, linux-wireless
On Tue, Dec 8, 2009 at 6:30 PM, Luis R. Rodriguez
<lrodriguez@atheros.com> wrote:
>>> IIRC this is all mapped in the INF file, I thought I had released an
>>> INF file under the ISC license but it seems that's not the case, I can
>>> try to do that if it helps. Anyway, if we can move this sort of map to
>>> userspace it'd be neat as you'd just need a userspace file update.
>>> Only thing is how to do this in a generic way for all wireless drivers
>>> and if this is indeed useful for other drivers.
>>
>> Export something through sysfs and use a udev rule?
>
> True. Is sysfs the preferred fs nowadays, what about configfs? Or
> maybe even udev rule --> nl80211 ?
If we have all the IDs from the INF file, then why do we need this in
userspace? Is the list growing?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-18 11:42 ` Shahar Or
@ 2009-12-18 15:37 ` Luis R. Rodriguez
2009-12-18 16:23 ` Luis R. Rodriguez
2009-12-18 17:03 ` Shahar Or
0 siblings, 2 replies; 13+ messages in thread
From: Luis R. Rodriguez @ 2009-12-18 15:37 UTC (permalink / raw)
To: Shahar Or; +Cc: John W. Linville, Bob Copeland, ath5k-devel, linux-wireless
On Fri, Dec 18, 2009 at 3:42 AM, Shahar Or <mightyiampresence@gmail.com> wrote:
> On Tue, Dec 8, 2009 at 6:30 PM, Luis R. Rodriguez
> <lrodriguez@atheros.com> wrote:
>>>> IIRC this is all mapped in the INF file, I thought I had released an
>>>> INF file under the ISC license but it seems that's not the case, I can
>>>> try to do that if it helps. Anyway, if we can move this sort of map to
>>>> userspace it'd be neat as you'd just need a userspace file update.
>>>> Only thing is how to do this in a generic way for all wireless drivers
>>>> and if this is indeed useful for other drivers.
>>>
>>> Export something through sysfs and use a udev rule?
>>
>> True. Is sysfs the preferred fs nowadays, what about configfs? Or
>> maybe even udev rule --> nl80211 ?
>
> If we have all the IDs from the INF file, then why do we need this in
> userspace? Is the list growing?
No, but for other newer hardware/drivers it can likely grow, so my
comment was more of a generic driver approach to this.
Luis
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-18 15:37 ` Luis R. Rodriguez
@ 2009-12-18 16:23 ` Luis R. Rodriguez
2009-12-18 17:03 ` Shahar Or
1 sibling, 0 replies; 13+ messages in thread
From: Luis R. Rodriguez @ 2009-12-18 16:23 UTC (permalink / raw)
To: Shahar Or
Cc: linux-wireless@vger.kernel.org, ath5k-devel@lists.ath5k.org,
John W. Linville
On Fri, Dec 18, 2009 at 07:37:24AM -0800, Luis Rodriguez wrote:
> On Fri, Dec 18, 2009 at 3:42 AM, Shahar Or <mightyiampresence@gmail.com> wrote:
> > On Tue, Dec 8, 2009 at 6:30 PM, Luis R. Rodriguez
> > <lrodriguez@atheros.com> wrote:
> >>>> IIRC this is all mapped in the INF file, I thought I had released an
> >>>> INF file under the ISC license but it seems that's not the case, I can
> >>>> try to do that if it helps. Anyway, if we can move this sort of map to
> >>>> userspace it'd be neat as you'd just need a userspace file update.
> >>>> Only thing is how to do this in a generic way for all wireless drivers
> >>>> and if this is indeed useful for other drivers.
> >>>
> >>> Export something through sysfs and use a udev rule?
> >>
> >> True. Is sysfs the preferred fs nowadays, what about configfs? Or
> >> maybe even udev rule --> nl80211 ?
> >
> > If we have all the IDs from the INF file, then why do we need this in
> > userspace? Is the list growing?
>
> No, but for other newer hardware/drivers it can likely grow, so my
> comment was more of a generic driver approach to this.
Actually AR2425 still sells it seems, so yeah I guess it can grow even
for ath5k.
Luis
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-18 15:37 ` Luis R. Rodriguez
2009-12-18 16:23 ` Luis R. Rodriguez
@ 2009-12-18 17:03 ` Shahar Or
2009-12-18 17:19 ` Luis R. Rodriguez
1 sibling, 1 reply; 13+ messages in thread
From: Shahar Or @ 2009-12-18 17:03 UTC (permalink / raw)
To: Luis R. Rodriguez
Cc: John W. Linville, Bob Copeland, ath5k-devel, linux-wireless
On Fri, Dec 18, 2009 at 5:37 PM, Luis R. Rodriguez
<lrodriguez@atheros.com> wrote:
>> If we have all the IDs from the INF file, then why do we need this in
>> userspace? Is the list growing?
>
> No, but for other newer hardware/drivers it can likely grow, so my
> comment was more of a generic driver approach to this.
Is this a linux-wireless thing, or do other areas of linux keep some
data in userspace?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [ath5k-devel] [PATCH] ath5k: add support for Dell Vostro A860 LED
2009-12-18 17:03 ` Shahar Or
@ 2009-12-18 17:19 ` Luis R. Rodriguez
0 siblings, 0 replies; 13+ messages in thread
From: Luis R. Rodriguez @ 2009-12-18 17:19 UTC (permalink / raw)
To: Shahar Or
Cc: Luis Rodriguez, John W. Linville, Bob Copeland,
ath5k-devel@lists.ath5k.org, linux-wireless@vger.kernel.org
On Fri, Dec 18, 2009 at 09:03:26AM -0800, Shahar Or wrote:
> On Fri, Dec 18, 2009 at 5:37 PM, Luis R. Rodriguez
> <lrodriguez@atheros.com> wrote:
> >> If we have all the IDs from the INF file, then why do we need this in
> >> userspace? Is the list growing?
> >
> > No, but for other newer hardware/drivers it can likely grow, so my
> > comment was more of a generic driver approach to this.
>
> Is this a linux-wireless thing
You mean my suggestion? It depends, I personally am not aware of
upstream drivers keeping tabs on knobs in userspace currently
but I do think things like configs are used to tweak, for example
Oracle db stuff. configs can technically also be used to expose
knobs for example for non-generic device configuration stuff
for example but as far as I can tell no one has really used it
yet for this. It does' mean its not possible. The other question
is where do we stuff this in userspace and if it really makes
sense to start following that practice. For GPIO pin mapping,
perhaps given the number of patches I see for it but since its
the only thing I see a good use of perhaps its not worth it.
The kernel should always use default sensible values but since
this is more of database thing it makes sence to start thinking
istead of userspace for a better solution. Examples of moving
large dbs to userspace could be the preference on USB side to
not keep the USB vendor/device IDs names in the kernel, and also
the regulatory database stuff.
> or do other areas of linux keep some
> data in userspace?
I gave a few examples, not sure what else the kernel keeps in
userspace for data which is generic like that. Moving PCI device
vendor/device names might be good example.
Luis
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2009-12-18 17:19 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03 13:07 [PATCH] ath5k: add support for Dell Vostro A860 LED Shahar Or
2009-12-04 19:23 ` John W. Linville
2009-12-07 10:05 ` Shahar Or
2009-12-07 21:59 ` John W. Linville
2009-12-08 14:57 ` [ath5k-devel] " Bob Copeland
2009-12-08 16:01 ` Luis R. Rodriguez
2009-12-08 16:06 ` John W. Linville
2009-12-08 16:30 ` Luis R. Rodriguez
2009-12-18 11:42 ` Shahar Or
2009-12-18 15:37 ` Luis R. Rodriguez
2009-12-18 16:23 ` Luis R. Rodriguez
2009-12-18 17:03 ` Shahar Or
2009-12-18 17:19 ` Luis R. Rodriguez
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).