All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rt2x00: Add 5GHz support for RF3052 devices
@ 2010-05-06 11:01 Ivo van Doorn
  2010-05-06 11:12 ` Gertjan van Wingerde
  0 siblings, 1 reply; 4+ messages in thread
From: Ivo van Doorn @ 2010-05-06 11:01 UTC (permalink / raw)
  To: John Linville; +Cc: linux-wireless, users

According to the Ralink drivers, the RF3052 chipset
supports the 5GHz band. Update channel initialization
to add the corresponding channels for this chip.

Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
---
 drivers/net/wireless/rt2x00/rt2800lib.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index e7a61a3..0d6f715 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -2223,7 +2223,7 @@ EXPORT_SYMBOL_GPL(rt2800_init_eeprom);
 
 /*
  * RF value list for rt28x0
- * Supports: 2.4 GHz (all) & 5.2 GHz (RF2850 & RF2750)
+ * Supports: 2.4 GHz (all) & 5.2 GHz (RF2850, RF2750 & RF3052)
  */
 static const struct rf_channel rf_vals[] = {
 	{ 1,  0x18402ecc, 0x184c0786, 0x1816b455, 0x1800510b },
@@ -2355,11 +2355,12 @@ int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
 	spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM;
 
 	if (rt2x00_rf(rt2x00dev, RF2820) ||
-	    rt2x00_rf(rt2x00dev, RF2720) ||
-	    rt2x00_rf(rt2x00dev, RF3052)) {
+	    rt2x00_rf(rt2x00dev, RF2720)) {
 		spec->num_channels = 14;
 		spec->channels = rf_vals;
-	} else if (rt2x00_rf(rt2x00dev, RF2850) || rt2x00_rf(rt2x00dev, RF2750)) {
+	} else if (rt2x00_rf(rt2x00dev, RF2850) ||
+		   rt2x00_rf(rt2x00dev, RF2750) ||
+		   rt2x00_rf(rt2x00dev, RF3052)) {
 		spec->supported_bands |= SUPPORT_BAND_5GHZ;
 		spec->num_channels = ARRAY_SIZE(rf_vals);
 		spec->channels = rf_vals;
-- 
1.6.6.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] rt2x00: Add 5GHz support for RF3052 devices
  2010-05-06 11:01 [PATCH] rt2x00: Add 5GHz support for RF3052 devices Ivo van Doorn
@ 2010-05-06 11:12 ` Gertjan van Wingerde
  2010-05-06 11:22   ` Ivo Van Doorn
  0 siblings, 1 reply; 4+ messages in thread
From: Gertjan van Wingerde @ 2010-05-06 11:12 UTC (permalink / raw)
  To: Ivo van Doorn; +Cc: John Linville, linux-wireless, users

On Thu, May 6, 2010 at 1:01 PM, Ivo van Doorn <ivdoorn@gmail.com> wrote:
> According to the Ralink drivers, the RF3052 chipset
> supports the 5GHz band. Update channel initialization
> to add the corresponding channels for this chip.
>
> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>

Actually, I believe that this is not correct (sorry I don't have the
Ralink driver at hand at the moment, nor the rt2x00 tree).
AFAIK the RF3052 needs the same initialization as for RF3020, RF3021,
RF3022, etc extended with the correct values for
5GHz band.

So, NAK for this patch.

Also, please keep in mind that for proper RT3572 support more needs to
be done, also in the register, BPP, and RFCSR initializations.

> ---
>  drivers/net/wireless/rt2x00/rt2800lib.c |    9 +++++----
>  1 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
> index e7a61a3..0d6f715 100644
> --- a/drivers/net/wireless/rt2x00/rt2800lib.c
> +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
> @@ -2223,7 +2223,7 @@ EXPORT_SYMBOL_GPL(rt2800_init_eeprom);
>
>  /*
>  * RF value list for rt28x0
> - * Supports: 2.4 GHz (all) & 5.2 GHz (RF2850 & RF2750)
> + * Supports: 2.4 GHz (all) & 5.2 GHz (RF2850, RF2750 & RF3052)
>  */
>  static const struct rf_channel rf_vals[] = {
>        { 1,  0x18402ecc, 0x184c0786, 0x1816b455, 0x1800510b },
> @@ -2355,11 +2355,12 @@ int rt2800_probe_hw_mode(struct rt2x00_dev *rt2x00dev)
>        spec->supported_rates = SUPPORT_RATE_CCK | SUPPORT_RATE_OFDM;
>
>        if (rt2x00_rf(rt2x00dev, RF2820) ||
> -           rt2x00_rf(rt2x00dev, RF2720) ||
> -           rt2x00_rf(rt2x00dev, RF3052)) {
> +           rt2x00_rf(rt2x00dev, RF2720)) {
>                spec->num_channels = 14;
>                spec->channels = rf_vals;
> -       } else if (rt2x00_rf(rt2x00dev, RF2850) || rt2x00_rf(rt2x00dev, RF2750)) {
> +       } else if (rt2x00_rf(rt2x00dev, RF2850) ||
> +                  rt2x00_rf(rt2x00dev, RF2750) ||
> +                  rt2x00_rf(rt2x00dev, RF3052)) {
>                spec->supported_bands |= SUPPORT_BAND_5GHZ;
>                spec->num_channels = ARRAY_SIZE(rf_vals);
>                spec->channels = rf_vals;
> --
> 1.6.6.1
>
> --
> 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
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] rt2x00: Add 5GHz support for RF3052 devices
  2010-05-06 11:12 ` Gertjan van Wingerde
@ 2010-05-06 11:22   ` Ivo Van Doorn
  2010-05-06 12:06     ` Ivo Van Doorn
  0 siblings, 1 reply; 4+ messages in thread
From: Ivo Van Doorn @ 2010-05-06 11:22 UTC (permalink / raw)
  To: Gertjan van Wingerde; +Cc: John Linville, linux-wireless, users

On Thu, May 6, 2010 at 1:12 PM, Gertjan van Wingerde
<gwingerde@gmail.com> wrote:
> On Thu, May 6, 2010 at 1:01 PM, Ivo van Doorn <ivdoorn@gmail.com> wrote:
>> According to the Ralink drivers, the RF3052 chipset
>> supports the 5GHz band. Update channel initialization
>> to add the corresponding channels for this chip.
>>
>> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
>
> Actually, I believe that this is not correct (sorry I don't have the
> Ralink driver at hand at the moment, nor the rt2x00 tree).

Well the original Ralink driver does state this device is a 5GHz device.

> AFAIK the RF3052 needs the same initialization as for RF3020, RF3021,
> RF3022, etc extended with the correct values for
> 5GHz band.

RF3020 and RF3021 are 2.4GHz devices.

> So, NAK for this patch.
>
> Also, please keep in mind that for proper RT3572 support more needs to
> be done, also in the register, BPP, and RFCSR initializations.

It could be that the initialization of RF3052 is incomplete, however that is not
limited to the 5GHz feature, but for both bands. Note that the
difference in initialization
only exists for settings the antenna and channel which already detect
if the initialization
should be done on the 2.4 or 5 GHz band.
So this argument shouldn't block this patch...

Ivo

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] rt2x00: Add 5GHz support for RF3052 devices
  2010-05-06 11:22   ` Ivo Van Doorn
@ 2010-05-06 12:06     ` Ivo Van Doorn
  0 siblings, 0 replies; 4+ messages in thread
From: Ivo Van Doorn @ 2010-05-06 12:06 UTC (permalink / raw)
  To: John Linville; +Cc: Gertjan van Wingerde, linux-wireless, users

John,

Please drop this patch. I just talked with Gertjan and I will be
sending an updated patch in a few minutes.

Ivo

On Thu, May 6, 2010 at 1:22 PM, Ivo Van Doorn <ivdoorn@gmail.com> wrote:
> On Thu, May 6, 2010 at 1:12 PM, Gertjan van Wingerde
> <gwingerde@gmail.com> wrote:
>> On Thu, May 6, 2010 at 1:01 PM, Ivo van Doorn <ivdoorn@gmail.com> wrote:
>>> According to the Ralink drivers, the RF3052 chipset
>>> supports the 5GHz band. Update channel initialization
>>> to add the corresponding channels for this chip.
>>>
>>> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
>>
>> Actually, I believe that this is not correct (sorry I don't have the
>> Ralink driver at hand at the moment, nor the rt2x00 tree).
>
> Well the original Ralink driver does state this device is a 5GHz device.
>
>> AFAIK the RF3052 needs the same initialization as for RF3020, RF3021,
>> RF3022, etc extended with the correct values for
>> 5GHz band.
>
> RF3020 and RF3021 are 2.4GHz devices.
>
>> So, NAK for this patch.
>>
>> Also, please keep in mind that for proper RT3572 support more needs to
>> be done, also in the register, BPP, and RFCSR initializations.
>
> It could be that the initialization of RF3052 is incomplete, however that is not
> limited to the 5GHz feature, but for both bands. Note that the
> difference in initialization
> only exists for settings the antenna and channel which already detect
> if the initialization
> should be done on the 2.4 or 5 GHz band.
> So this argument shouldn't block this patch...
>
> Ivo
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-06 12:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06 11:01 [PATCH] rt2x00: Add 5GHz support for RF3052 devices Ivo van Doorn
2010-05-06 11:12 ` Gertjan van Wingerde
2010-05-06 11:22   ` Ivo Van Doorn
2010-05-06 12:06     ` Ivo Van Doorn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.