All of lore.kernel.org
 help / color / mirror / Atom feed
* RFC - removal of SPROM fallback
@ 2010-12-01 19:15 Larry Finger
  2010-12-01 19:55   ` Rafał Miłecki
  2010-12-01 21:56   ` Michael Büsch
  0 siblings, 2 replies; 8+ messages in thread
From: Larry Finger @ 2010-12-01 19:15 UTC (permalink / raw)
  To: Michael Buesch, John Linville, Rafał Miłecki,
	Gábor Stefanik
  Cc: b43-dev, wireless

At one time, we thought that we had found BCM43xx devices with no SPROM. In the
one case that I remember, it was because the SPROM had been relocated.

I now have the data from John's device that needs the revision fixup and I know
what is wrong - it is rev 2 with corrupted CRC. The defaulting to rev 1 is
getting almost everything wrong, including MAC address and vendor. My plan is to
write a better fixup routine.

At the moment, we have some SPROM fallback code that has not been fully
implemented, and is probably not needed. Are there any objections to stripping
this code out of drivers/ssb/pci.c and drivers/ssb/sprom.c?

Larry

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

* Re: RFC - removal of SPROM fallback
  2010-12-01 19:15 RFC - removal of SPROM fallback Larry Finger
@ 2010-12-01 19:55   ` Rafał Miłecki
  2010-12-01 21:56   ` Michael Büsch
  1 sibling, 0 replies; 8+ messages in thread
From: Rafał Miłecki @ 2010-12-01 19:55 UTC (permalink / raw)
  To: Larry Finger
  Cc: Michael Buesch, John Linville, Gábor Stefanik, b43-dev, wireless

2010/12/1 Larry Finger <Larry.Finger@lwfinger.net>:
> At one time, we thought that we had found BCM43xx devices with no SPROM. In the
> one case that I remember, it was because the SPROM had been relocated.

That's right.


> I now have the data from John's device that needs the revision fixup and I know
> what is wrong - it is rev 2 with corrupted CRC. The defaulting to rev 1 is
> getting almost everything wrong, including MAC address and vendor. My plan is to
> write a better fixup routine.

That's interesting... so is that SPROM rev2 with CRC counted like for
rev1? Are you sure about this case? AFAIR:
1) John got CRC error when we dropped hack and treated SPROM as
revision it reports
2) John got success CRC check when we hacked his SPROM to "be" rev 1


> At the moment, we have some SPROM fallback code that has not been fully
> implemented, and is probably not needed. Are there any objections to stripping
> this code out of drivers/ssb/pci.c and drivers/ssb/sprom.c?

I don't believe we will find out SSBs without SPROMs and implementing
support for new Broadcom cards should not depend on SSB code... so I
do not any problems about that.


-- 
Rafał

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

* RFC - removal of SPROM fallback
@ 2010-12-01 19:55   ` Rafał Miłecki
  0 siblings, 0 replies; 8+ messages in thread
From: Rafał Miłecki @ 2010-12-01 19:55 UTC (permalink / raw)
  To: Larry Finger
  Cc: Michael Buesch, John Linville, Gábor Stefanik, b43-dev, wireless

2010/12/1 Larry Finger <Larry.Finger@lwfinger.net>:
> At one time, we thought that we had found BCM43xx devices with no SPROM. In the
> one case that I remember, it was because the SPROM had been relocated.

That's right.


> I now have the data from John's device that needs the revision fixup and I know
> what is wrong - it is rev 2 with corrupted CRC. The defaulting to rev 1 is
> getting almost everything wrong, including MAC address and vendor. My plan is to
> write a better fixup routine.

That's interesting... so is that SPROM rev2 with CRC counted like for
rev1? Are you sure about this case? AFAIR:
1) John got CRC error when we dropped hack and treated SPROM as
revision it reports
2) John got success CRC check when we hacked his SPROM to "be" rev 1


> At the moment, we have some SPROM fallback code that has not been fully
> implemented, and is probably not needed. Are there any objections to stripping
> this code out of drivers/ssb/pci.c and drivers/ssb/sprom.c?

I don't believe we will find out SSBs without SPROMs and implementing
support for new Broadcom cards should not depend on SSB code... so I
do not any problems about that.


-- 
Rafa?

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

* Re: RFC - removal of SPROM fallback
  2010-12-01 19:15 RFC - removal of SPROM fallback Larry Finger
@ 2010-12-01 21:56   ` Michael Büsch
  2010-12-01 21:56   ` Michael Büsch
  1 sibling, 0 replies; 8+ messages in thread
From: Michael Büsch @ 2010-12-01 21:56 UTC (permalink / raw)
  To: Larry Finger
  Cc: John Linville, Rafał Miłecki, Gábor Stefanik,
	b43-dev, wireless

On Wed, 2010-12-01 at 13:15 -0600, Larry Finger wrote: 
> At one time, we thought that we had found BCM43xx devices with no SPROM. In the
> one case that I remember, it was because the SPROM had been relocated.
> 
> I now have the data from John's device that needs the revision fixup and I know
> what is wrong - it is rev 2 with corrupted CRC. The defaulting to rev 1 is
> getting almost everything wrong, including MAC address and vendor. My plan is to
> write a better fixup routine.
> 
> At the moment, we have some SPROM fallback code that has not been fully
> implemented, and is probably not needed. Are there any objections to stripping
> this code out of drivers/ssb/pci.c and drivers/ssb/sprom.c?

Yes. The code is needed for bcm63xx embedded devices. The code that uses
it currently is not in mainline, though. It can be found in the OpenWRT
repositories.

But I still think that the SPROM fallback mechanism should be replaced
by a "platform data" based mechanism, or similar. Just removing it
without replacement is not an option, because bcm63xx embedded really
does not have an SPROM.

The bcm63xx was the reason the fallback mechanism was implemented in
the first place. See git logs for more details.

-- 
Greetings Michael.


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

* RFC - removal of SPROM fallback
@ 2010-12-01 21:56   ` Michael Büsch
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Büsch @ 2010-12-01 21:56 UTC (permalink / raw)
  To: Larry Finger
  Cc: John Linville, Rafał Miłecki, Gábor Stefanik,
	b43-dev, wireless

On Wed, 2010-12-01 at 13:15 -0600, Larry Finger wrote: 
> At one time, we thought that we had found BCM43xx devices with no SPROM. In the
> one case that I remember, it was because the SPROM had been relocated.
> 
> I now have the data from John's device that needs the revision fixup and I know
> what is wrong - it is rev 2 with corrupted CRC. The defaulting to rev 1 is
> getting almost everything wrong, including MAC address and vendor. My plan is to
> write a better fixup routine.
> 
> At the moment, we have some SPROM fallback code that has not been fully
> implemented, and is probably not needed. Are there any objections to stripping
> this code out of drivers/ssb/pci.c and drivers/ssb/sprom.c?

Yes. The code is needed for bcm63xx embedded devices. The code that uses
it currently is not in mainline, though. It can be found in the OpenWRT
repositories.

But I still think that the SPROM fallback mechanism should be replaced
by a "platform data" based mechanism, or similar. Just removing it
without replacement is not an option, because bcm63xx embedded really
does not have an SPROM.

The bcm63xx was the reason the fallback mechanism was implemented in
the first place. See git logs for more details.

-- 
Greetings Michael.

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

* Re: RFC - removal of SPROM fallback
  2010-12-01 21:56   ` Michael Büsch
  (?)
@ 2010-12-01 22:20   ` Florian Fainelli
  2010-12-01 23:08       ` Larry Finger
  -1 siblings, 1 reply; 8+ messages in thread
From: Florian Fainelli @ 2010-12-01 22:20 UTC (permalink / raw)
  To: Michael Büsch
  Cc: Larry Finger, John Linville, Rafał Miłecki,
	Gábor Stefanik, b43-dev, wireless

Hello,

Le 01/12/2010 22:56, Michael Büsch a écrit :
> On Wed, 2010-12-01 at 13:15 -0600, Larry Finger wrote:
>> At one time, we thought that we had found BCM43xx devices with no SPROM. In the
>> one case that I remember, it was because the SPROM had been relocated.
>>
>> I now have the data from John's device that needs the revision fixup and I know
>> what is wrong - it is rev 2 with corrupted CRC. The defaulting to rev 1 is
>> getting almost everything wrong, including MAC address and vendor. My plan is to
>> write a better fixup routine.
>>
>> At the moment, we have some SPROM fallback code that has not been fully
>> implemented, and is probably not needed. Are there any objections to stripping
>> this code out of drivers/ssb/pci.c and drivers/ssb/sprom.c?
>
> Yes. The code is needed for bcm63xx embedded devices. The code that uses
> it currently is not in mainline, though. It can be found in the OpenWRT
> repositories.

It actually is mainline and used.

>
> But I still think that the SPROM fallback mechanism should be replaced
> by a "platform data" based mechanism, or similar. Just removing it
> without replacement is not an option, because bcm63xx embedded really
> does not have an SPROM.

Correct. The rationale behind this is that if you have a big flash for 
your system, you do not want to afford the cost for another flash chip 
storing the SPROM. Whichever mechanism works for your, I will do the 
required changes in the bcm63xx architecture code.

>
> The bcm63xx was the reason the fallback mechanism was implemented in
> the first place. See git logs for more details.
>


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

* Re: RFC - removal of SPROM fallback
  2010-12-01 22:20   ` Florian Fainelli
@ 2010-12-01 23:08       ` Larry Finger
  0 siblings, 0 replies; 8+ messages in thread
From: Larry Finger @ 2010-12-01 23:08 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: Michael Büsch, John Linville, Rafał Miłecki,
	Gábor Stefanik, b43-dev, wireless

On 12/01/2010 04:20 PM, Florian Fainelli wrote:
> Hello,
> 
> Le 01/12/2010 22:56, Michael Büsch a écrit :
>> On Wed, 2010-12-01 at 13:15 -0600, Larry Finger wrote:
>>> At one time, we thought that we had found BCM43xx devices with no
>>> SPROM. In the
>>> one case that I remember, it was because the SPROM had been relocated.
>>>
>>> I now have the data from John's device that needs the revision fixup
>>> and I know
>>> what is wrong - it is rev 2 with corrupted CRC. The defaulting to rev
>>> 1 is
>>> getting almost everything wrong, including MAC address and vendor. My
>>> plan is to
>>> write a better fixup routine.
>>>
>>> At the moment, we have some SPROM fallback code that has not been fully
>>> implemented, and is probably not needed. Are there any objections to
>>> stripping
>>> this code out of drivers/ssb/pci.c and drivers/ssb/sprom.c?
>>
>> Yes. The code is needed for bcm63xx embedded devices. The code that uses
>> it currently is not in mainline, though. It can be found in the OpenWRT
>> repositories.
> 
> It actually is mainline and used.
> 
>>
>> But I still think that the SPROM fallback mechanism should be replaced
>> by a "platform data" based mechanism, or similar. Just removing it
>> without replacement is not an option, because bcm63xx embedded really
>> does not have an SPROM.
> 
> Correct. The rationale behind this is that if you have a big flash for
> your system, you do not want to afford the cost for another flash chip
> storing the SPROM. Whichever mechanism works for your, I will do the
> required changes in the bcm63xx architecture code.

There is no need for that. I'll start my changes after the check for a fallback
SPROM returns NULL. My only reason for removing anything is that I thought it
was not used.

Larry


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

* RFC - removal of SPROM fallback
@ 2010-12-01 23:08       ` Larry Finger
  0 siblings, 0 replies; 8+ messages in thread
From: Larry Finger @ 2010-12-01 23:08 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: Michael Büsch, John Linville, Rafał Miłecki,
	Gábor Stefanik, b43-dev, wireless

On 12/01/2010 04:20 PM, Florian Fainelli wrote:
> Hello,
> 
> Le 01/12/2010 22:56, Michael B?sch a ?crit :
>> On Wed, 2010-12-01 at 13:15 -0600, Larry Finger wrote:
>>> At one time, we thought that we had found BCM43xx devices with no
>>> SPROM. In the
>>> one case that I remember, it was because the SPROM had been relocated.
>>>
>>> I now have the data from John's device that needs the revision fixup
>>> and I know
>>> what is wrong - it is rev 2 with corrupted CRC. The defaulting to rev
>>> 1 is
>>> getting almost everything wrong, including MAC address and vendor. My
>>> plan is to
>>> write a better fixup routine.
>>>
>>> At the moment, we have some SPROM fallback code that has not been fully
>>> implemented, and is probably not needed. Are there any objections to
>>> stripping
>>> this code out of drivers/ssb/pci.c and drivers/ssb/sprom.c?
>>
>> Yes. The code is needed for bcm63xx embedded devices. The code that uses
>> it currently is not in mainline, though. It can be found in the OpenWRT
>> repositories.
> 
> It actually is mainline and used.
> 
>>
>> But I still think that the SPROM fallback mechanism should be replaced
>> by a "platform data" based mechanism, or similar. Just removing it
>> without replacement is not an option, because bcm63xx embedded really
>> does not have an SPROM.
> 
> Correct. The rationale behind this is that if you have a big flash for
> your system, you do not want to afford the cost for another flash chip
> storing the SPROM. Whichever mechanism works for your, I will do the
> required changes in the bcm63xx architecture code.

There is no need for that. I'll start my changes after the check for a fallback
SPROM returns NULL. My only reason for removing anything is that I thought it
was not used.

Larry

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

end of thread, other threads:[~2010-12-01 23:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-01 19:15 RFC - removal of SPROM fallback Larry Finger
2010-12-01 19:55 ` Rafał Miłecki
2010-12-01 19:55   ` Rafał Miłecki
2010-12-01 21:56 ` Michael Büsch
2010-12-01 21:56   ` Michael Büsch
2010-12-01 22:20   ` Florian Fainelli
2010-12-01 23:08     ` Larry Finger
2010-12-01 23:08       ` Larry Finger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.