b43-dev.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] b43: treat LCNXN-PHY as extra N-PHY devices
@ 2014-06-29 19:46 Rafał Miłecki
  2014-06-30 10:54 ` Arend van Spriel
  0 siblings, 1 reply; 4+ messages in thread
From: Rafał Miłecki @ 2014-06-29 19:46 UTC (permalink / raw)
  To: linux-wireless, John W. Linville; +Cc: b43-dev, Rafał Miłecki

LCNXN is simply a continuation of N, e.g. code handling LCNXN revs 0 and
1 is mostly the same as for N-PHY revs 7+.

Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
---
 drivers/net/wireless/b43/main.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index 3e4333c..0b1aac4 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -4331,6 +4331,13 @@ static int b43_phy_versioning(struct b43_wldev *dev)
 	analog_type = (tmp & B43_PHYVER_ANALOG) >> B43_PHYVER_ANALOG_SHIFT;
 	phy_type = (tmp & B43_PHYVER_TYPE) >> B43_PHYVER_TYPE_SHIFT;
 	phy_rev = (tmp & B43_PHYVER_VERSION);
+
+	/* LCNXN is continuation of N which run out of revisions */
+	if (phy_type == B43_PHYTYPE_LCNXN) {
+		phy_type = B43_PHYTYPE_N;
+		phy_rev += 16;
+	}
+
 	switch (phy_type) {
 #ifdef CONFIG_B43_PHY_G
 	case B43_PHYTYPE_G:
-- 
1.8.4.5

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

* [PATCH] b43: treat LCNXN-PHY as extra N-PHY devices
  2014-06-29 19:46 [PATCH] b43: treat LCNXN-PHY as extra N-PHY devices Rafał Miłecki
@ 2014-06-30 10:54 ` Arend van Spriel
  2014-06-30 11:04   ` Rafał Miłecki
  0 siblings, 1 reply; 4+ messages in thread
From: Arend van Spriel @ 2014-06-30 10:54 UTC (permalink / raw)
  To: Rafał Miłecki, linux-wireless, John W. Linville; +Cc: b43-dev

On 29-06-14 21:46, Rafa? Mi?ecki wrote:
> LCNXN is simply a continuation of N, e.g. code handling LCNXN revs 0 and
> 1 is mostly the same as for N-PHY revs 7+.

Hi Rafa?,

LCNXN is actually a LCN phy with 2 streams (mimo).

Regards,
Arend

> Signed-off-by: Rafa? Mi?ecki <zajec5@gmail.com>
> ---
>  drivers/net/wireless/b43/main.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
> index 3e4333c..0b1aac4 100644
> --- a/drivers/net/wireless/b43/main.c
> +++ b/drivers/net/wireless/b43/main.c
> @@ -4331,6 +4331,13 @@ static int b43_phy_versioning(struct b43_wldev *dev)
>  	analog_type = (tmp & B43_PHYVER_ANALOG) >> B43_PHYVER_ANALOG_SHIFT;
>  	phy_type = (tmp & B43_PHYVER_TYPE) >> B43_PHYVER_TYPE_SHIFT;
>  	phy_rev = (tmp & B43_PHYVER_VERSION);
> +
> +	/* LCNXN is continuation of N which run out of revisions */
> +	if (phy_type == B43_PHYTYPE_LCNXN) {
> +		phy_type = B43_PHYTYPE_N;
> +		phy_rev += 16;
> +	}
> +
>  	switch (phy_type) {
>  #ifdef CONFIG_B43_PHY_G
>  	case B43_PHYTYPE_G:
> 

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

* [PATCH] b43: treat LCNXN-PHY as extra N-PHY devices
  2014-06-30 10:54 ` Arend van Spriel
@ 2014-06-30 11:04   ` Rafał Miłecki
  2014-07-01 10:13     ` Arend van Spriel
  0 siblings, 1 reply; 4+ messages in thread
From: Rafał Miłecki @ 2014-06-30 11:04 UTC (permalink / raw)
  To: Arend van Spriel
  Cc: linux-wireless@vger.kernel.org, John W. Linville, b43-dev

On 30 June 2014 12:54, Arend van Spriel <arend@broadcom.com> wrote:
> On 29-06-14 21:46, Rafa? Mi?ecki wrote:
>> LCNXN is simply a continuation of N, e.g. code handling LCNXN revs 0 and
>> 1 is mostly the same as for N-PHY revs 7+.
>
> Hi Rafa?,
>
> LCNXN is actually a LCN phy with 2 streams (mimo).

Err, I don't think so. Could you take a closer look at this? I'm
pretty sure LCNXN is continuation of N.

Maybe you were thinking about LCN40? I don't know much about LCN40,
maybe it's a variation of LCN?

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

* [PATCH] b43: treat LCNXN-PHY as extra N-PHY devices
  2014-06-30 11:04   ` Rafał Miłecki
@ 2014-07-01 10:13     ` Arend van Spriel
  0 siblings, 0 replies; 4+ messages in thread
From: Arend van Spriel @ 2014-07-01 10:13 UTC (permalink / raw)
  To: Rafał Miłecki
  Cc: linux-wireless@vger.kernel.org, John W. Linville, b43-dev

On 30-06-14 13:04, Rafa? Mi?ecki wrote:
> On 30 June 2014 12:54, Arend van Spriel <arend@broadcom.com> wrote:
>> On 29-06-14 21:46, Rafa? Mi?ecki wrote:
>>> LCNXN is simply a continuation of N, e.g. code handling LCNXN revs 0 and
>>> 1 is mostly the same as for N-PHY revs 7+.
>>
>> Hi Rafa?,
>>
>> LCNXN is actually a LCN phy with 2 streams (mimo).
> 
> Err, I don't think so. Could you take a closer look at this? I'm
> pretty sure LCNXN is continuation of N.

You got me. I taken a closer look. It seems to stand for e'x'tended n.
There was separate phy code for it, but in recent code it seems to be
handled by n phy code. So you are right.

> Maybe you were thinking about LCN40? I don't know much about LCN40,
> maybe it's a variation of LCN?

Probably.

Gr. AvS

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

end of thread, other threads:[~2014-07-01 10:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-29 19:46 [PATCH] b43: treat LCNXN-PHY as extra N-PHY devices Rafał Miłecki
2014-06-30 10:54 ` Arend van Spriel
2014-06-30 11:04   ` Rafał Miłecki
2014-07-01 10:13     ` Arend van Spriel

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).