Return-path: Received: from mms2.broadcom.com ([216.31.210.18]:1702 "EHLO mms2.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752101Ab2BTJVc (ORCPT ); Mon, 20 Feb 2012 04:21:32 -0500 Message-ID: <4F421044.6080101@broadcom.com> (sfid-20120220_102136_228253_D7C7B94E) Date: Mon, 20 Feb 2012 10:20:04 +0100 From: "Arend van Spriel" MIME-Version: 1.0 To: "Hauke Mehrtens" cc: "Larry Finger" , "Saul St. John" , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , "linux-wireless@vger.kernel.org" Subject: Re: [RFC] use alternate SPROM offset for 43224 References: <20120214040120.GA2077@eris.garyseven.net> <20120214185202.GA5339@eris.garyseven.net> <4F3ABFB0.3020502@lwfinger.net> <4F3AC20E.8080502@hauke-m.de> <4F3ADA6E.4050301@lwfinger.net> <400C43189542CE41BC0A5B252FC90136BC8414D128@SJEXCHCCR02.corp.ad.broadcom.com> <4F411729.5070705@hauke-m.de> In-Reply-To: <4F411729.5070705@hauke-m.de> Content-Type: text/plain; charset=utf-8; format=flowed Sender: linux-wireless-owner@vger.kernel.org List-ID: On 02/19/2012 04:37 PM, Hauke Mehrtens wrote: > On 02/14/2012 11:39 PM, Arend Van Spriel wrote: >>> Sent: dinsdag 14 februari 2012 23:04 >>> >>> On 02/14/2012 02:20 PM, Hauke Mehrtens wrote: >>>>>> I think it is more complicated than the above. On my 43224, I get >>> the >>>>>> message "No SPROM available", which arises because >>> bcma_sprom_get() is >>>>>> returning -ENOENT. The reason is that the value tested in "if >>>>>> (!(sromctrl& BCMA_CC_SROM_CONTROL_PRESENT))" is zero. The >>> contents of >>>>>> sromctl are 0x12, and the mask is 1. >>>> This check is the main part of ai_is_sprom_available() in brcmsmac. >>> If >>>> this check fails, like in your case, brcmsmac tries otp_read_pci() to >>>> read out the sprom, which is not implemented in bcma. >>> >>> I will try implementing a similar routine in bcma. >>> >> >> I started adding proper OTP support in BCMA, but I am currently working on async firmware loading feature. Different chipsets can either have an external SPROM or on-chip OTP. Some have both, but only one holds the data. >> >> Gr. AvS > Nice to hear you are working on OTP support in bcma. In that process, > are you also working on making brcmsmac using the sprom provided by bcma? > > Hauke > > Yep, no sense having it implemented in two places. I think I will do it in one patch series. Gr. AvS