All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Copeland <me@bobcopeland.com>
To: Pierre Ossman <pierre@ossman.eu>
Cc: Kalle Valo <kalle.valo@iki.fi>,
	linux-wireless@vger.kernel.org, san@google.com
Subject: Re: [PATCH/RFC 7/7] wl12xx: add sdio support
Date: Fri, 19 Jun 2009 16:31:41 -0400	[thread overview]
Message-ID: <b6c5339f0906191331x6c360d63wec431fc9d35b38c0@mail.gmail.com> (raw)
In-Reply-To: <20090619212419.2f3626d7@mjolnir.ossman.eu>

On Fri, Jun 19, 2009 at 3:24 PM, Pierre Ossman<pierre@ossman.eu> wrote:
> I'm afraid I don't understand the problem. If you power up the card
> before the MMC system has started, it should still properly find the
> card and activate the wl12xx driver once things are in sync.

Okay a little more background:

This is with the out-of-tree Android msm_sdcc host driver.  There are
various implicit assumptions in module ordering.  For example, one of
the platform callbacks sets a "virtual card select" flag, and then
tries to notify the MMC host via another callback to do
mmc_detect_change().  But that code runs before the MMC driver is
loaded so the callback isn't yet registered and no one gets the
notification.

The Android loads the TI wifi module whenever someone uses it and
then unloads it afterwards, so the current use of the msm_wifi platform
driver is always after MMC is running.  And that's why the set_power()
callbacks exist in the first place: they enable the phone to turn off
the module via gpios, disconnect external oscillators, etc. when the
person isn't actively using the wifi (i.e. module is unloaded).  A
separate platform driver could still manage all of that.

(The above is just from my reading the source, San can correct any
errors.)

IOW, this particular issue isn't related to the core in-tree code, I
was just describing why my first try failed.  I believe you that it will
work fine once the Android specifics are worked out.

> Do you want me to merge it?

It can go via the wireless tree if that's ok with you, since the
SPI driver already lives there and this all needs to be rebased
on Kalle Valo's latest changes anyway.

It'd be nice to get msm_sdcc upstream though.

-- 
Bob Copeland %% www.bobcopeland.com

  reply	other threads:[~2009-06-19 20:31 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-11  2:02 [PATCH/RFC 0/7] wl12xx SDIO interface Bob Copeland
2009-06-11  2:02 ` [PATCH/RFC 1/7] wl12xx: separate bus i/o code into io.c Bob Copeland
2009-06-11  2:02 ` [PATCH/RFC 2/7] wl12xx: use wiphy_dev instead of wl->spi->dev Bob Copeland
2009-06-11  2:02 ` [PATCH/RFC 3/7] wl12xx: introduce wl12xx_if_operations struct Bob Copeland
2009-06-11  2:02 ` [PATCH/RFC 4/7] wl12xx: make wl12xx_set_partition bus agnostic Bob Copeland
2009-06-11  2:02 ` [PATCH/RFC 5/7] wl12xx: move module probe methods into spi.c Bob Copeland
2009-06-11  2:02 ` [PATCH/RFC 6/7] wl12xx: split spi interface into separate module Bob Copeland
2009-06-11  2:03 ` [PATCH/RFC 7/7] wl12xx: add sdio support Bob Copeland
2009-06-13 11:21   ` Pierre Ossman
2009-06-13 16:00     ` Kalle Valo
2009-06-13 19:41       ` Marcel Holtmann
2009-06-13 20:13         ` Kalle Valo
2009-06-13 20:24           ` Marcel Holtmann
2009-06-13 20:44             ` Kalle Valo
2009-06-13 20:09       ` Pierre Ossman
2009-06-13 20:57         ` Bob Copeland
2009-06-18  2:25           ` Bob Copeland
2009-06-19 19:24             ` Pierre Ossman
2009-06-19 20:31               ` Bob Copeland [this message]
2009-06-20  4:29                 ` Kalle Valo
2009-06-21 18:38                 ` Pierre Ossman
2009-06-22  0:05                   ` Bob Copeland
2009-06-22  6:09                     ` Pierre Ossman
2009-06-22  6:14                       ` Pierre Ossman
2009-06-23  2:18                         ` Bob Copeland
2009-07-15  7:12             ` Ohad Ben-Cohen
2009-07-15 12:08               ` Bob Copeland
2009-06-11 14:38 ` [PATCH/RFC 0/7] wl12xx SDIO interface Gábor Stefanik
2009-06-11 14:54   ` Florian Fainelli
2009-06-11 17:06     ` Bob Copeland
2009-06-11 14:55   ` Samuel Ortiz
2009-06-11 14:59     ` Florian Fainelli
2009-06-11 15:04       ` Gábor Stefanik
2009-06-11 15:08         ` Florian Fainelli
2009-06-11 15:03     ` Samuel Ortiz
2009-06-11 15:54 ` Kalle Valo
2009-06-11 17:08   ` Bob Copeland
2009-06-11 17:14     ` 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=b6c5339f0906191331x6c360d63wec431fc9d35b38c0@mail.gmail.com \
    --to=me@bobcopeland.com \
    --cc=kalle.valo@iki.fi \
    --cc=linux-wireless@vger.kernel.org \
    --cc=pierre@ossman.eu \
    --cc=san@google.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.