Skip to contentSkip to conversation

bcm43xx-softmac: improve wrong firmware message

PATCH In review Larry Finger 4 participants 5 messages Sep 12, 2006 – Sep 14, 2006 1 message not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bcm43xx-softmac: improve wrong firmware message

An error message is changed to a printk as the original dprintk would be optimized away if debugging were not enabled. If the error is triggered, a more meaningful message is returned.

---

John,

This patch incorporates Michael's comments.

Larry

drivers/net/wireless/bcm43xx/bcm43xx_main.c +4 -3
Index: wireless-2.6/drivers/net/wireless/bcm43xx/bcm43xx_main.c
===================================================================
@@ -2405,9 +2405,10 @@ static int bcm43xx_chip_init(struct bcm4
 				   BCM43xx_UCODE_TIME) & 0x1f);
 
 	if ( value16 > 0x128 ) {
-		dprintk(KERN_ERR PFX
-			"Firmware: no support for microcode rev > 0x128\n");
-		err = -1;
+		printk(KERN_ERR PFX
+			"Firmware: no support for microcode extracted "
+			"from version 4.x binary drivers.\n");
+		err = -EOPNOTSUPP;
 		goto err_release_fw;
 	}
#1 lore raw

drivers/net/wireless/bcm43xx/bcm43xx_main.c static int bcm43xx_chip_init(struct bcm4 · line 2410

Quoted 12 lines · Larry Finger

An error message is changed to a printk as the original dprintk would be optimized away if debugging were not enabled. If the error is triggered, a more meaningful message is returned.

drivers/net/wireless/bcm43xx/bcm43xx_main.c +3 -3
 	if ( value16 > 0x128 ) {
-		dprintk(KERN_ERR PFX
-			"Firmware: no support for microcode rev > 0x128\n");
-		err = -1;
+		printk(KERN_ERR PFX
+			"Firmware: no support for microcode extracted "
+			"from version 4.x binary drivers.\n");

Why not writing both (ucode rev and driver version)? Something like

	"from version 4.x binary drivers (rev>0x128).\n"

BTW, if anybody needs the relationship between ucode revsion and driver version then he should look at the table here:

http://www.langerland.de/linux/bcm43xx/firmware.html

Martin

#2 lore raw
Quoted 9 lines · Martin Langer

Why not writing both (ucode rev and driver version)? Something like

	"from version 4.x binary drivers (rev>0x128).\n"

BTW, if anybody needs the relationship between ucode revsion and driver version then he should look at the table here:

http://www.langerland.de/linux/bcm43xx/firmware.html

I could do that; however, I think this error message may have a short life as I'm just now looking at Michael's v4 firmware revisions for d80211 with an eye toward porting them to softmac.

John - what do you think?

Larry

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 6 lines · Larry Finger
Quoted 5 lines · Martin Langer

Why not writing both (ucode rev and driver version)? Something like

	"from version 4.x binary drivers (rev>0x128).\n"
Quoted 8 lines
Quoted 4 lines

BTW, if anybody needs the relationship between ucode revsion and driver version then he should look at the table here:

http://www.langerland.de/linux/bcm43xx/firmware.html

I could do that; however, I think this error message may have a short life as I'm just now looking at Michael's v4 firmware revisions for d80211 with an eye toward porting them to softmac.

Please note that it's incomplete.

Signature · 1 line
Greetings Michael.
#5 lore raw
In reply to a message not in the archive
Quoted 9 lines · Larry Finger
Quoted 8 lines · Martin Langer

Why not writing both (ucode rev and driver version)? Something like

	"from version 4.x binary drivers (rev>0x128).\n"

BTW, if anybody needs the relationship between ucode revsion and driver version then he should look at the table here:

Quoted 7 lines
Quoted 1 line

http://www.langerland.de/linux/bcm43xx/firmware.html

I could do that; however, I think this error message may have a short life as I'm just now looking at Michael's v4 firmware revisions for d80211 with an eye toward porting them to softmac.

John - what do you think?

Let's just take the new/current patch as-is. Someone who understands "rev > 0x128" should be able to find the message in the code for himself... :-)

John

Signature · 2 lines
John W. Linville
[email protected]