Search Linux Wireless

Re: [PATCH] ssb: fail registration for unknown SPROM revision

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2010/11/18 John W. Linville <linville@xxxxxxxxxxxxx>:
> On Tue, Nov 16, 2010 at 04:23:21PM -0500, John W. Linville wrote:
>> On Wed, Nov 03, 2010 at 11:28:46PM +0100, RafaÅ MiÅecki wrote:
>> > Signed-off-by: RafaÅ MiÅecki <zajec5@xxxxxxxxx>
>> > ---
>> > As noticed my Michael we have this left from old times of limited amount of
>> > revisions. It's not reliable to treat unknown as rev1.
>> >
>> > Michael: would you like to add Reported-by?
>> >
>> > John: it's for 2.6.38.
>> > ---
>> > Âdrivers/ssb/pci.c | Â Â8 +++-----
>> > Â1 files changed, 3 insertions(+), 5 deletions(-)
>> >
>> > diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c
>> > index b5343ac..41a7337 100644
>> > --- a/drivers/ssb/pci.c
>> > +++ b/drivers/ssb/pci.c
>> > @@ -600,11 +600,9 @@ static int sprom_extract(struct ssb_bus *bus, struct ssb_sprom *out,
>> > Â Â Â Â Â Â sprom_extract_r8(out, in);
>> > Â Â Â Â Â Â break;
>> > Â Â default:
>> > - Â Â Â Â Â ssb_printk(KERN_WARNING PFX "Unsupported SPROM"
>> > - Â Â Â Â Â Â Â Â Â Â Â" Ârevision %d detected. Will extract"
>> > - Â Â Â Â Â Â Â Â Â Â Â" v1\n", out->revision);
>> > - Â Â Â Â Â out->revision = 1;
>> > - Â Â Â Â Â sprom_extract_r123(out, in);
>> > + Â Â Â Â Â ssb_printk(KERN_ERR PFX "Unsupported SPROM revision %d"
>> > + Â Â Â Â Â Â Â Â Â Â Â" detected\n", out->revision);
>> > + Â Â Â Â Â return -EINVAL;
>> > Â Â }
>> >
>> > Â Â if (out->boardflags_lo == 0xFFFF)
>>
>> I think this is going to make my b43 PCI-E card not work...I'll try
>> it and get back to you...
>
> Yeah...
>
> [ Â125.520348] b43-pci-bridge 0000:04:00.0: enabling device (0000 -> 0002)
> [ Â125.520359] b43-pci-bridge 0000:04:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
> [ Â125.520373] b43-pci-bridge 0000:04:00.0: setting latency timer to 64
> [ Â125.529241] ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x11, vendor 0x4243)
> [ Â125.529255] ssb: Core 1 found: IEEE 802.11 (cc 0x812, rev 0x0A, vendor 0x4243)
> [ Â125.529268] ssb: Core 2 found: USB 1.1 Host (cc 0x817, rev 0x03, vendor 0x4243)
> [ Â125.529280] ssb: Core 3 found: PCI-E (cc 0x820, rev 0x01, vendor 0x4243)
> [ Â125.545750] ssb: WARNING: Invalid SPROM CRC (corrupt SPROM)
> [ Â125.545752] ssb: Unsupported SPROM revision 255 detected
> [ Â125.545797] ssb: Failed to register PCI version of SSB with error -22
> [ Â125.545810] b43-pci-bridge 0000:04:00.0: PCI INT A disabled
> [ Â125.545827] b43-pci-bridge: probe of 0000:04:00.0 failed with error -22

Hm, now I wonder if we should create sth like list of devices with
invalid SPROM, or maybe we should keep current fallback method?

-- 
RafaÅ
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux