All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kalle Valo <kalle.valo@iki.fi>
To: Bob Copeland <me@bobcopeland.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [WIP PATCH] sdio support for wl12xx
Date: Thu, 21 May 2009 17:58:45 +0300	[thread overview]
Message-ID: <87d4a2wli2.fsf@litku.valot.fi> (raw)
In-Reply-To: <b6c5339f0905201223n4c8c4811h25a397e69a642c2a@mail.gmail.com> (Bob Copeland's message of "Wed\, 20 May 2009 15\:23\:04 -0400")

Bob Copeland <me@bobcopeland.com> writes:

> On Wed, May 20, 2009 at 3:05 PM, Kalle Valo <kalle.valo@iki.fi> wrote:
>> Bob Copeland <me@bobcopeland.com> writes:
>>> So much for hubris!
>>
>> Don't feel down about this, this is always difficult and you are making
>> good progress already.
>
> Heh, just a joke :)

Good :)

>> Current wl12xx code assumes that user space provides the NVS file. I'm
>> guessing that Android has NVS file stored in chip's EEPROM. Check the
>> !pWhalBus->pEEPROMBuf code path from TI's driver how to implement it.
>
> If you don't mind, check my work

Definitely not, feel free to ask me.

> -- the shmFwCtrl.c code seems to do the equivalent of:
>
>    // initiate eeprom transfer
>    wl12xx_reg_write32(wl, ACX_REG_EE_START, ACX_REG_EEPROM_START_BIT); // ***
>    msleep(40);
>    msleep(40);
>
>    // sets spad4 to 0, I guess this is some kind of address register?
>    wl12xx_reg_write32(wl, ACX_EEPROMLESS_IND_REG, 0);
>
>    // everything from here on out is the same - read spad2 and 3 then boot.

To me the code looks same. Only difference I found was that the TI
driver had only one msleep(40), but that won't make any difference.

> *** NB: I redefined ACX_REG_EEPROM_START_BIT to BIT(0) -- BIT(1) looked
> wrong unless that define is meant for something else.

I think BIT(1) is wrong, most probably I introduced the bug.

> The state machine is kind of hard to read, but it seems like there
> should be more to it. Did I miss anything as far as you can tell?

My understanding is that nothing else is needed, but I can be wrong.

> I get all zeros from spad2 and spad3 so it's not working with just the
> above...

Not good. Can you somehow check if Google stores the NVS file to the
chip or somewhere else?

-- 
Kalle Valo

  reply	other threads:[~2009-05-21 14:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-18 18:09 [WIP PATCH] sdio support for wl12xx Bob Copeland
2009-05-18 18:39 ` Kalle Valo
2009-05-19  4:02 ` Bob Copeland
2009-05-20 19:05   ` Kalle Valo
2009-05-20 19:23     ` Bob Copeland
2009-05-21 14:58       ` Kalle Valo [this message]
2009-05-21 15:05         ` Kalle Valo
2009-05-21 15:36           ` Bob Copeland

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=87d4a2wli2.fsf@litku.valot.fi \
    --to=kalle.valo@iki.fi \
    --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 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.