public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [BUG] No SPROM available!
@ 2010-03-29 15:59 René Bolldorf
  2010-03-29 18:57 ` René Bolldorf
  0 siblings, 1 reply; 3+ messages in thread
From: René Bolldorf @ 2010-03-29 15:59 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-kernel

Hi John,

since commit fcb54b0bf7d3fe730c2b72e224bc616e358f24cb, my b43 (4312) 
device doesn't work.

But the device have a sprom. Maybe the chip-status register check is wrong?

+/** Macros to determine SPROM presence based on Chip-Status register. */
+#define SSB_CHIPCO_CHST_4312_SPROM_PRESENT(status) \
+       ((status & SSB_CHIPCO_CHST_4325_SPROM_OTP_SEL) != \
+               SSB_CHIPCO_CHST_4325_OTP_SEL)

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

* Re: [BUG] No SPROM available!
  2010-03-29 15:59 [BUG] No SPROM available! René Bolldorf
@ 2010-03-29 18:57 ` René Bolldorf
  0 siblings, 0 replies; 3+ messages in thread
From: René Bolldorf @ 2010-03-29 18:57 UTC (permalink / raw)
  To: John W. Linville; +Cc: linux-kernel

On 03/29/10 17:59, René Bolldorf wrote:
> Hi John,
>
> since commit fcb54b0bf7d3fe730c2b72e224bc616e358f24cb, my b43 (4312)
> device doesn't work.
>
> But the device have a sprom. Maybe the chip-status register check is wrong?
>
> +/** Macros to determine SPROM presence based on Chip-Status register. */
> +#define SSB_CHIPCO_CHST_4312_SPROM_PRESENT(status) \
> + ((status & SSB_CHIPCO_CHST_4325_SPROM_OTP_SEL) != \
> + SSB_CHIPCO_CHST_4325_OTP_SEL)

I have talked with my colleague and he have the same problem. I have 
made a patch , for me it works and should work for others too. My 
colleague testing this in the late evening.

diff --git a/include/linux/ssb/ssb_driver_chipcommon.h 
b/include/linux/ssb/ssb_driver_chipcommon.h
index 2cdf249..1e0b9cd 100644
--- a/include/linux/ssb/ssb_driver_chipcommon.h
+++ b/include/linux/ssb/ssb_driver_chipcommon.h
@@ -386,6 +386,7 @@


  /** Chip specific Chip-Status register contents. */
+#define SSB_CHIPCO_CHST_4312_SPROM_EXISTS	0x00000025
  #define SSB_CHIPCO_CHST_4322_SPROM_EXISTS	0x00000040 /* SPROM present */
  #define SSB_CHIPCO_CHST_4325_SPROM_OTP_SEL	0x00000003
  #define SSB_CHIPCO_CHST_4325_DEFCIS_SEL		0 /* OTP is powered up, use 
def. CIS, no SPROM */
@@ -403,7 +404,7 @@
  /** Macros to determine SPROM presence based on Chip-Status register. */
  #define SSB_CHIPCO_CHST_4312_SPROM_PRESENT(status) \
  	((status & SSB_CHIPCO_CHST_4325_SPROM_OTP_SEL) != \
-		SSB_CHIPCO_CHST_4325_OTP_SEL)
+		SSB_CHIPCO_CHST_4312_SPROM_EXISTS)
  #define SSB_CHIPCO_CHST_4322_SPROM_PRESENT(status) \
  	(status & SSB_CHIPCO_CHST_4322_SPROM_EXISTS)
  #define SSB_CHIPCO_CHST_4325_SPROM_PRESENT(status) \

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

* Re: [BUG] No SPROM available!
@ 2010-03-29 19:20 Larry Finger
  0 siblings, 0 replies; 3+ messages in thread
From: Larry Finger @ 2010-03-29 19:20 UTC (permalink / raw)
  To: René_Bolldorf; +Cc: John Linville, LKML, wireless

René,

When you have a wireless problem, please post it to
linux-wireless@vger.kernel.org. The Linux Kernel Mailing List may or may not be
appropriate.

To help in diagnosing your problem, please apply this patch and post the output
line that it produces. On my system, it shows

ssb: chip_id 0x4312, status 0x10

Please also post the output of 'lspci -nnv | grep 14e4'.

Index: wireless-testing/drivers/ssb/sprom.c
===================================================================
--- wireless-testing.orig/drivers/ssb/sprom.c
+++ wireless-testing/drivers/ssb/sprom.c
@@ -182,6 +182,8 @@ bool ssb_is_sprom_available(struct ssb_b
 	if (bus->chipco.dev->id.revision < 11)
 		return true;

+	printk(KERN_INFO "ssb: chip_id 0x%x, status 0x%x\n", bus->chip_id,
+			  bus->chipco.status);
 	switch (bus->chip_id) {
 	case 0x4312:
 		return SSB_CHIPCO_CHST_4312_SPROM_PRESENT(bus->chipco.status);


Larry



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

end of thread, other threads:[~2010-03-29 19:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-29 15:59 [BUG] No SPROM available! René Bolldorf
2010-03-29 18:57 ` René Bolldorf
  -- strict thread matches above, loose matches on Subject: below --
2010-03-29 19:20 Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox