linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kalle Valo <kalle.valo@iki.fi>
To: "John Willis" <John.Willis@Distant-earth.com>
Cc: "'Bob Copeland'" <me@bobcopeland.com>, <linux-wireless@vger.kernel.org>
Subject: Re: [RFC] WL1251: Very crude EEPROM reading support for the WL1251 driver
Date: Sat, 17 Oct 2009 15:54:20 +0300	[thread overview]
Message-ID: <8763aemb9f.fsf@purkki.valot.fi> (raw)
In-Reply-To: <034401ca4f0d$d494a140$7dbde3c0$@Willis@Distant-earth.com> (John Willis's message of "Sat\, 17 Oct 2009 10\:40\:12 +0100")

"John Willis" <John.Willis@Distant-earth.com> writes:

>> Didn't HTC Dream store the NVS file in the main flash memory? AFAIK
>> the EEPROM support in wl1251 needs a separate chip for the EEPROM, so
>> if someone has stored the NVS file to the main flash memory I really
>> doubt that they would still use EEPROM with wl1251. So the NVS file is
>> stored either to somewhere outside wl1251 or to the EEPROM, but not
>> both.
>
> Yep, the NVS on the MSM HTC devices I have seen have been stored in the main
> NAND flash at a given offset outside of the main rootfs 'but' I was sure
> someone had mentioned that the G1 also featured an EEPROM attached to the
> WL1251 as we have on the Pandora.

Ah, ok. Then your patch is really needed for those devices.

> Mea culpa, I could well be wrong on that one. I assumed that the HTC
> platform maintained both as some odd hangover to the Windows CE
> software roots of the platform (it would not be the 1st time ;-)).

Yeah, usually it's like that :)

> I guess that raises another point then, maybe should we look at another
> method of getting the NVS from NAND if the platform gives it's offsets? No
> idea how that would work in a clean way however but something to consider as
> the HTC devices will make up a chunk of the long term userbase.

I think it's better do this in user space, doing this from kernel in a
portable way is too complicated. In earlier discussions the conclusion
has been to use request_firmware() interface and a modified udev
script which retrieves the calibration data from NAND/NOR/whatever and
pushes it to kernel. 

To my knowledge nobody hasn't implemented this yet, but I think that's
the way to go. But as always, I'm open for suggestions.

-- 
Kalle Valo

  parent reply	other threads:[~2009-10-17 12:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <01c901ca4daf$6e3d7f20$4ab87d60$@Willis@Distant-earth.com>
2009-10-16  7:52 ` [RFC] WL1251: Very crude EEPROM reading support for the WL1251 driver Kalle Valo
2009-10-16 11:59 ` Bob Copeland
2009-10-17  6:16   ` Kalle Valo
     [not found]     ` <034401ca4f0d$d494a140$7dbde3c0$@Willis@Distant-earth.com>
2009-10-17 12:54       ` Kalle Valo [this message]
2009-11-08 18:57 ` Kalle Valo
     [not found]   ` <006b01ca60a6$60aa1f80$21fe5e80$@Willis@Distant-earth.com>
2009-11-08 19:18     ` Kalle Valo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8763aemb9f.fsf@purkki.valot.fi \
    --to=kalle.valo@iki.fi \
    --cc=John.Willis@Distant-earth.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=me@bobcopeland.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).