Skip to contentSkip to conversation

b43: Add new SSB's core id for BCM4328

PATCH In review Rafał Miłecki 4 participants 10 messages Jan 2, 2010 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 b43: Add new SSB's core id for BCM4328

Finally I've possibility to test my Christmas-gift N-PHY :) b43 didn't really "notice" it, so I needed to write this little patch. Now b43 at least look for firmware for my card.

Does this patch look OK?

This time I post from Opera mail so I hope white-spaces will be fine.

From 9b3ea4f29b038f732aba737323e2f89b275ce1ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
Date: Sat, 2 Jan 2010 16:58:16 +0100
Subject: [PATCH] b43: Add new SSB's core id for BCM4328
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Following line shows my BCM4328 detected on SSB. We didn't include 0x0C rev.
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x0C, vendor 0x4243)

---
 drivers/net/wireless/b43/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/b43/main.c +1 -0
index 098dda1..3aa45b8 100644
@@ -110,6 +110,7 @@ static const struct ssb_device_id b43_ssb_tbl[] = {
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 9),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 10),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 11),
+       SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 12),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 13),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 15),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 16),

--
1.6.4.2

From 9b3ea4f29b038f732aba737323e2f89b275ce1ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
Date: Sat, 2 Jan 2010 16:58:16 +0100
Subject: [PATCH] b43: Add new SSB's core id for BCM4328
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Following line shows my BCM4328 detected on SSB. We didn't include 0x0C rev.
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x0C, vendor 0x4243)

---
 drivers/net/wireless/b43/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/b43/main.c +1 -0
index 098dda1..3aa45b8 100644
@@ -110,6 +110,7 @@ static const struct ssb_device_id b43_ssb_tbl[] = {
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 9),
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 10),
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 11),
+	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 12),
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 13),
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 15),
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 16),
Signature · 1 line
1.6.4.2
#1 lore raw

2010/1/2 Rafał Miłecki <[email protected]>:

Quoted 30 lines

Finally I've possibility to test my Christmas-gift N-PHY :) b43 didn't really "notice" it, so I needed to write this little patch. Now b43 at least look for firmware for my card.

Does this patch look OK?

This time I post from Opera mail so I hope white-spaces will be fine.

From 9b3ea4f29b038f732aba737323e2f89b275ce1ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
Date: Sat, 2 Jan 2010 16:58:16 +0100
Subject: [PATCH] b43: Add new SSB's core id for BCM4328
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Following line shows my BCM4328 detected on SSB. We didn't include 0x0C rev.
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x0C, vendor 0x4243)

---
 drivers/net/wireless/b43/main.c |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/b43/main.c +0 -0
index 098dda1..3aa45b8 100644

drivers/net/wireless/b43/main.c static const struct ssb_device_id b43_ssb_tbl[] = { · line 113

Quoted 4 lines
drivers/net/wireless/b43/main.c +1 -0
@@ -110,6 +110,7 @@ static const struct ssb_device_id b43_ssb_tbl[] = {
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 9),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 10),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 11),
+       SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 12),

Rev.14 is also missing (which AFAIK is used by some LP cards).

Quoted 5 lines
drivers/net/wireless/b43/main.c +0 -1
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 13),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 15),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 16),
--

1.6.4.2

Signature · 1 line
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
#2 lore raw

W dniu 2 stycznia 2010 17:26 użytkownik Gábor Stefanik

Quoted 25 lines · <[email protected]> napisał:

2010/1/2 Rafał Miłecki <[email protected]>:

Quoted 24 lines

Finally I've possibility to test my Christmas-gift N-PHY :) b43 didn't really "notice" it, so I needed to write this little patch. Now b43 at least look for firmware for my card.

Does this patch look OK?

This time I post from Opera mail so I hope white-spaces will be fine.

From 9b3ea4f29b038f732aba737323e2f89b275ce1ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
Date: Sat, 2 Jan 2010 16:58:16 +0100
Subject: [PATCH] b43: Add new SSB's core id for BCM4328
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Following line shows my BCM4328 detected on SSB. We didn't include 0x0C rev.
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x0C, vendor 0x4243)

---
 drivers/net/wireless/b43/main.c |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
Quoted 12 lines

drivers/net/wireless/b43/main.c static const struct ssb_device_id b43_ssb_tbl[] = { · line 113

Quoted 10 lines
drivers/net/wireless/b43/main.c +1 -0
index 098dda1..3aa45b8 100644
@@ -110,6 +110,7 @@ static const struct ssb_device_id b43_ssb_tbl[] = {
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 9),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 10),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 11),
+       SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 12),

Rev.14 is also missing (which AFAIK is used by some LP cards).

Thanks, I'll post patch for that as well. Is adding this 0x0C (==13) fine in this form? Or maybe we should use ifdef CONFIG_B43_NPHY for some reason?

Signature · 1 line
Rafał
#3 lore raw

2010/1/2 Rafał Miłecki <[email protected]>:

Quoted 40 lines

W dniu 2 stycznia 2010 17:26 użytkownik Gábor Stefanik

Quoted 25 lines · <[email protected]> napisał:

2010/1/2 Rafał Miłecki <[email protected]>:

Quoted 24 lines

Finally I've possibility to test my Christmas-gift N-PHY :) b43 didn't really "notice" it, so I needed to write this little patch. Now b43 at least look for firmware for my card.

Does this patch look OK?

This time I post from Opera mail so I hope white-spaces will be fine.

From 9b3ea4f29b038f732aba737323e2f89b275ce1ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
Date: Sat, 2 Jan 2010 16:58:16 +0100
Subject: [PATCH] b43: Add new SSB's core id for BCM4328
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Following line shows my BCM4328 detected on SSB. We didn't include 0x0C rev.
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x0C, vendor 0x4243)

---
 drivers/net/wireless/b43/main.c |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
Quoted 12 lines

drivers/net/wireless/b43/main.c static const struct ssb_device_id b43_ssb_tbl[] = { · line 113

Quoted 10 lines
drivers/net/wireless/b43/main.c +1 -0
index 098dda1..3aa45b8 100644
@@ -110,6 +110,7 @@ static const struct ssb_device_id b43_ssb_tbl[] = {
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 9),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 10),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 11),
+       SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 12),

Rev.14 is also missing (which AFAIK is used by some LP cards).

Quoted 3 lines

Thanks, I'll post patch for that as well. Is adding this 0x0C (==13) fine in this form? Or maybe we should use ifdef CONFIG_B43_NPHY for some reason?

I would say it's OK this way (BTW 0x0C == 12); we also didn't put rev.15 under CONFIG_B43_PHY_LP.

(BTW I'm planning to rename CONFIG_B43_NPHY to CONFIG_B43_PHY_N in preparation for further PHY types, as well as the ability to only build certain PHYs as needed if EMBEDDED is set - a kernel for an LP-PHY SoC might save some space by not building G-PHY code.)

Quoted 4 lines

--
Rafał

Signature · 1 line
Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-)
#6 lore raw
In reply to Rafał Miłecki
Quoted 31 lines · Rafał Miłecki

Finally I've possibility to test my Christmas-gift N-PHY :) b43 didn't really "notice" it, so I needed to write this little patch. Now b43 at least look for firmware for my card.

Does this patch look OK?

This time I post from Opera mail so I hope white-spaces will be fine.

From 9b3ea4f29b038f732aba737323e2f89b275ce1ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
Date: Sat, 2 Jan 2010 16:58:16 +0100
Subject: [PATCH] b43: Add new SSB's core id for BCM4328
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Following line shows my BCM4328 detected on SSB. We didn't include 0x0C rev.
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x0C, vendor 0x4243)

---
 drivers/net/wireless/b43/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/b43/main.c +0 -0
index 098dda1..3aa45b8 100644

drivers/net/wireless/b43/main.c static const struct ssb_device_id b43_ssb_tbl[] = { · line 116

Quoted 7 lines
drivers/net/wireless/b43/main.c +1 -0
@@ -110,6 +110,7 @@ static const struct ssb_device_id b43_ssb_tbl[] = {
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 9),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 10),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 11),
+       SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 12),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 13),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 15),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 16),

Your tabs have been converted to spaces.

Most of my patches are sent using the mail command; however, I can send them with Thunderbird using the following steps:

(1) Prepare the mail message with the patch attached.

(2) Save the message and close the open copy.

(3) Go to the "Draft" folder and click on the entry.

(4) The attachment will be listed at the bottom. Highlight that test and copy into the clipboard.

(5) Click the "Edit" button, paste the attachment text into the message, clear the attachment entry, and send.

I'm not sure how far you have gotten with the code, but I have been working with a new driver with version 5.10.56.46. There are a lot of changes from the 4.174... that was previously reverse-engineered.

To answer your question in a later E-mail. You do not need to conditionalize the core revision entry. If the N PHY code is not turned on, the driver will get an unsupported PHY message and fail later in an acceptable error.

Larry

#4 lore raw
In reply to Gábor Stefanik

W dniu 2 stycznia 2010 17:43 użytkownik Gábor Stefanik

Quoted 41 lines · <[email protected]> napisał:

2010/1/2 Rafał Miłecki <[email protected]>:

Quoted 40 lines

W dniu 2 stycznia 2010 17:26 użytkownik Gábor Stefanik

Quoted 37 lines · <[email protected]> napisał:

2010/1/2 Rafał Miłecki <[email protected]>:

Quoted 30 lines

Finally I've possibility to test my Christmas-gift N-PHY :) b43 didn't really "notice" it, so I needed to write this little patch. Now b43 at least look for firmware for my card.

Does this patch look OK?

This time I post from Opera mail so I hope white-spaces will be fine.

From 9b3ea4f29b038f732aba737323e2f89b275ce1ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
Date: Sat, 2 Jan 2010 16:58:16 +0100
Subject: [PATCH] b43: Add new SSB's core id for BCM4328
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Following line shows my BCM4328 detected on SSB. We didn't include 0x0C rev.
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x0C, vendor 0x4243)

---
 drivers/net/wireless/b43/main.c |    1 +

 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/b43/main.c +0 -0
index 098dda1..3aa45b8 100644

drivers/net/wireless/b43/main.c static const struct ssb_device_id b43_ssb_tbl[] = { · line 113

Quoted 4 lines
drivers/net/wireless/b43/main.c +1 -0
@@ -110,6 +110,7 @@ static const struct ssb_device_id b43_ssb_tbl[] = {
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 9),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 10),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 11),
+       SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 12),

Rev.14 is also missing (which AFAIK is used by some LP cards).

Quoted 6 lines
Quoted 3 lines

Thanks, I'll post patch for that as well. Is adding this 0x0C (==13) fine in this form? Or maybe we should use ifdef CONFIG_B43_NPHY for some reason?

I would say it's OK this way (BTW 0x0C == 12); we also didn't put rev.15 under CONFIG_B43_PHY_LP.

OK, thanks. And of course I've meant 0x0C == 12 :) After applying this patch b43 won't try to init N-PHY device until CONFIG_B43_NPHY is set. So I believe this patch is fine, thanks for sharing opinion :)

Quoted 4 lines

(BTW I'm planning to rename CONFIG_B43_NPHY to CONFIG_B43_PHY_N in preparation for further PHY types, as well as the ability to only build certain PHYs as needed if EMBEDDED is set - a kernel for an LP-PHY SoC might save some space by not building G-PHY code.)

Heh, I was planning to do that :) OK, I'll focus on other stuff, waiting for your patch :)

Signature · 1 line
Rafał
#7 lore raw
In reply to Larry Finger

W dniu 2 stycznia 2010 17:48 użytkownik Larry Finger

Quoted 4 lines · <[email protected]> napisał:

Your tabs have been converted to spaces.

Most of my patches are sent using the mail command; however, I can send them with Thunderbird using the following steps:

Oh great :| I guess I'll just try mail command.

Quoted 3 lines

I'm not sure how far you have gotten with the code, but I have been working with a new driver with version 5.10.56.46. There are a lot of changes from the 4.174... that was previously reverse-engineered.

I don't have anything more than posted patches.

What do you suggest about writing next (real) parts? Is that worth effort basing code on current RE docs? Maybe some parts only, that didn't change? Or should I just wait for update (is anyone working on it)?

Quoted 3 lines

To answer your question in a later E-mail. You do not need to conditionalize the core revision entry. If the N PHY code is not turned on, the driver will get an unsupported PHY message and fail later in an acceptable error.

One more confirmation :) Thanks.

Signature · 1 line
Rafał
#9 lore raw
In reply to Larry Finger

White-spaces fixed.

From 9b3ea4f29b038f732aba737323e2f89b275ce1ab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <[email protected]>
Date: Sat, 2 Jan 2010 16:58:16 +0100
Subject: [PATCH] b43: Add new SSB's core id for BCM4328
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Following line shows my BCM4328 detected on SSB. We didn't include 0x0C rev.
ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x0C, vendor 0x4243)

---
 drivers/net/wireless/b43/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/net/wireless/b43/main.c +1 -0
index 098dda1..3aa45b8 100644
@@ -110,6 +110,7 @@ static const struct ssb_device_id b43_ssb_tbl[] = {
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 9),
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 10),
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 11),
+	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 12),
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 13),
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 15),
 	SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 16),
Signature · 1 line
1.6.4.2
#8 lore raw
In reply to Rafał Miłecki
Quoted 14 lines · Rafał Miłecki

W dniu 2 stycznia 2010 17:48 użytkownik Larry Finger

Quoted 4 lines · <[email protected]> napisał:

Your tabs have been converted to spaces.

Most of my patches are sent using the mail command; however, I can send them with Thunderbird using the following steps:

Oh great :| I guess I'll just try mail command.

Quoted 3 lines

I'm not sure how far you have gotten with the code, but I have been working with a new driver with version 5.10.56.46. There are a lot of changes from the 4.174... that was previously reverse-engineered.

Quoted 6 lines

I don't have anything more than posted patches.

What do you suggest about writing next (real) parts? Is that worth effort basing code on current RE docs? Maybe some parts only, that didn't change? Or should I just wait for update (is anyone working on it)?

I have finished the initialization routine found in
http://bcm-v4.sipsolutions.net/802.11/PHY/Init/N. I still have 6 or 8 of the routines called to prepare and some of the others to check, but you could at least code the main routine with dummy stubs for the called routines..

You should check with Gabor regarding PHY and radio register names.

Larry

#5 lore raw
In reply to Gábor Stefanik
Quoted 7 lines · On Saturday 02 January 2010 17:26:55 Gábor Stefanik wrote:

drivers/net/wireless/b43/main.c static const struct ssb_device_id b43_ssb_tbl[] = { · line 113

Quoted 5 lines
drivers/net/wireless/b43/main.c +1 -0
@@ -110,6 +110,7 @@ static const struct ssb_device_id b43_ssb_tbl[] = {
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 9),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 10),
        SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 11),
+       SSB_DEVICE(SSB_VENDOR_BROADCOM, SSB_DEV_80211, 12),

Rev.14 is also missing (which AFAIK is used by some LP cards).

"AFAIK" doesn't count.
We only add IDs for cards that do actually exist in reality. So do you have such a card or a report by someone owning one?

Signature · 1 line
Greetings, Michael.