2009-07-18 10:20:41

by Pavel Machek

[permalink] [raw]
Subject: iwl3945: fix LED config option

On Thu 2009-07-09 08:39:46, reinette chatre wrote:
> On Thu, 2009-07-09 at 02:38 -0700, Pavel Machek wrote:
> > > >
> > > > (Also wifi LED stopped working on x60, but that's older issue).
> > >
> > > Is there a bug report for this?
> >
> > Well... I thought that was known issue?
> >
> > Anyway, wifi LED used to work on x60 before driver rewrite. Now it is
> > broken. I thought it is known/missing functionality? ...but I'd like
> > to get it back :-).
>
> Sorry ... but I have to ask ... did you compile with
> CONFIG_IWLWIFI_LEDS ? If you still have issues - please do submit a bug
> report.

Aha, this explains it:

Enable LED support in iwlagn and iwl3945 drivers (IWLWIFI_LEDS) [N/y] (NEW) ?

Sorry, no help available for this option yet.

...maybe LEDS should be default Y?
Pavel

---

IWLWIFI_LEDS option should certainly have help comment, and should
default to y. Actually I wonder if it should be user configurable at
all, is there good reason?

Signed-off-by: Pavel Machek <[email protected]>

diff --git a/drivers/net/wireless/iwlwifi/Kconfig b/drivers/net/wireless/iwlwifi/Kconfig
index e092af0..95d9aa5 100644
--- a/drivers/net/wireless/iwlwifi/Kconfig
+++ b/drivers/net/wireless/iwlwifi/Kconfig
@@ -9,6 +9,10 @@ config IWLWIFI
config IWLWIFI_LEDS
bool "Enable LED support in iwlagn and iwl3945 drivers"
depends on IWLWIFI
+ default y
+ ---help---
+ Useful to get Wifi LED working at least on Thinkpad notebooks.
+

config IWLWIFI_SPECTRUM_MEASUREMENT
bool "Enable Spectrum Measurement in iwlagn driver"


--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


2009-07-20 20:45:32

by Reinette Chatre

[permalink] [raw]
Subject: Re: iwl3945: fix LED config option

Hi Pavel,

On Sat, 2009-07-18 at 03:20 -0700, Pavel Machek wrote:
> On Thu 2009-07-09 08:39:46, reinette chatre wrote:
> > On Thu, 2009-07-09 at 02:38 -0700, Pavel Machek wrote:
> > > > >
> > > > > (Also wifi LED stopped working on x60, but that's older issue).
> > > >
> > > > Is there a bug report for this?
> > >
> > > Well... I thought that was known issue?
> > >
> > > Anyway, wifi LED used to work on x60 before driver rewrite. Now it is
> > > broken. I thought it is known/missing functionality? ...but I'd like
> > > to get it back :-).
> >
> > Sorry ... but I have to ask ... did you compile with
> > CONFIG_IWLWIFI_LEDS ? If you still have issues - please do submit a bug
> > report.
>
> Aha, this explains it:
>
> Enable LED support in iwlagn and iwl3945 drivers (IWLWIFI_LEDS) [N/y] (NEW) ?
>
> Sorry, no help available for this option yet.
>
> ...maybe LEDS should be default Y?
> Pavel
>
> ---
>
> IWLWIFI_LEDS option should certainly have help comment,

Currently is reads (as you also have below) "Enable LED support in
iwlagn and iwl3945 drivers". This seems clear to me.

> and should
> default to y.

This makes sense.

> Actually I wonder if it should be user configurable at
> all, is there good reason?

Some users find the LED annoying and like to have a way to disable it.

>
> Signed-off-by: Pavel Machek <[email protected]>
>
> diff --git a/drivers/net/wireless/iwlwifi/Kconfig b/drivers/net/wireless/iwlwifi/Kconfig
> index e092af0..95d9aa5 100644
> --- a/drivers/net/wireless/iwlwifi/Kconfig
> +++ b/drivers/net/wireless/iwlwifi/Kconfig
> @@ -9,6 +9,10 @@ config IWLWIFI
> config IWLWIFI_LEDS
> bool "Enable LED support in iwlagn and iwl3945 drivers"
> depends on IWLWIFI
> + default y

This is reasonable.

> + ---help---
> + Useful to get Wifi LED working at least on Thinkpad notebooks.

I do not think this says more than what we already have. I actually
think noting something about a particular platform will increase
confusion (as in "so where is the option if I have an acer laptop?")
because this option is needed to get LED support on all platforms. I do
think what is currently written is sufficient, but if you insist on
having some text there I think it should be simpler. Something like
"Select this if you want LED support."


Reinette

2009-07-20 22:19:23

by Pavel Machek

[permalink] [raw]
Subject: Re: iwl3945: fix LED config option

> > diff --git a/drivers/net/wireless/iwlwifi/Kconfig b/drivers/net/wireless/iwlwifi/Kconfig
> > index e092af0..95d9aa5 100644
> > --- a/drivers/net/wireless/iwlwifi/Kconfig
> > +++ b/drivers/net/wireless/iwlwifi/Kconfig
> > @@ -9,6 +9,10 @@ config IWLWIFI
> > config IWLWIFI_LEDS
> > bool "Enable LED support in iwlagn and iwl3945 drivers"
> > depends on IWLWIFI
> > + default y
>
> This is reasonable.
>
> > + ---help---
> > + Useful to get Wifi LED working at least on Thinkpad notebooks.
>
> I do not think this says more than what we already have. I actually
> think noting something about a particular platform will increase
> confusion (as in "so where is the option if I have an acer laptop?")
> because this option is needed to get LED support on all platforms. I do
> think what is currently written is sufficient, but if you insist on
> having some text there I think it should be simpler. Something like
> "Select this if you want LED support."

Sounds good. (I really believe it should have _some_ text). Will you
just modify/apply the patch, or should I resent?
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

2009-07-21 03:02:08

by Reinette Chatre

[permalink] [raw]
Subject: Re: iwl3945: fix LED config option

Hi Pavel,

On Mon, 2009-07-20 at 15:19 -0700, Pavel Machek wrote:
> > > diff --git a/drivers/net/wireless/iwlwifi/Kconfig b/drivers/net/wireless/iwlwifi/Kconfig
> > > index e092af0..95d9aa5 100644
> > > --- a/drivers/net/wireless/iwlwifi/Kconfig
> > > +++ b/drivers/net/wireless/iwlwifi/Kconfig
> > > @@ -9,6 +9,10 @@ config IWLWIFI
> > > config IWLWIFI_LEDS
> > > bool "Enable LED support in iwlagn and iwl3945 drivers"
> > > depends on IWLWIFI
> > > + default y
> >
> > This is reasonable.
> >
> > > + ---help---
> > > + Useful to get Wifi LED working at least on Thinkpad notebooks.
> >
> > I do not think this says more than what we already have. I actually
> > think noting something about a particular platform will increase
> > confusion (as in "so where is the option if I have an acer laptop?")
> > because this option is needed to get LED support on all platforms. I do
> > think what is currently written is sufficient, but if you insist on
> > having some text there I think it should be simpler. Something like
> > "Select this if you want LED support."
>
> Sounds good. (I really believe it should have _some_ text). Will you
> just modify/apply the patch, or should I resent?

Sure, I can take this patch and will send it through our usual route
(via linux-wireless).

Reinette

2009-07-21 07:58:57

by Pavel Machek

[permalink] [raw]
Subject: Re: iwl3945: fix LED config option

On Mon 2009-07-20 20:02:06, reinette chatre wrote:
> Hi Pavel,
>
> On Mon, 2009-07-20 at 15:19 -0700, Pavel Machek wrote:
> > > > diff --git a/drivers/net/wireless/iwlwifi/Kconfig b/drivers/net/wireless/iwlwifi/Kconfig
> > > > index e092af0..95d9aa5 100644
> > > > --- a/drivers/net/wireless/iwlwifi/Kconfig
> > > > +++ b/drivers/net/wireless/iwlwifi/Kconfig
> > > > @@ -9,6 +9,10 @@ config IWLWIFI
> > > > config IWLWIFI_LEDS
> > > > bool "Enable LED support in iwlagn and iwl3945 drivers"
> > > > depends on IWLWIFI
> > > > + default y
> > >
> > > This is reasonable.
> > >
> > > > + ---help---
> > > > + Useful to get Wifi LED working at least on Thinkpad notebooks.
> > >
> > > I do not think this says more than what we already have. I actually
> > > think noting something about a particular platform will increase
> > > confusion (as in "so where is the option if I have an acer laptop?")
> > > because this option is needed to get LED support on all platforms. I do
> > > think what is currently written is sufficient, but if you insist on
> > > having some text there I think it should be simpler. Something like
> > > "Select this if you want LED support."
> >
> > Sounds good. (I really believe it should have _some_ text). Will you
> > just modify/apply the patch, or should I resent?
>
> Sure, I can take this patch and will send it through our usual route
> (via linux-wireless).

thanks!


--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html