linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ulf Hansson <ulf.hansson@linaro.org>
To: Laszlo Fiat <laszlo.fiat@gmail.com>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	Fabio Estevam <festevam@gmail.com>,
	Russell King <rmk+kernel@arm.linux.org.uk>,
	Michael Turquette <mturquette@baylibre.com>
Subject: Re: SDIO wifi card is not detected with 4.5-rc kernels
Date: Tue, 29 Mar 2016 12:31:44 +0200	[thread overview]
Message-ID: <CAPDyKFq74ppimCo0AGgqdtT=C-41y6LKZHELSpJXvDaSdTT=1A@mail.gmail.com> (raw)
In-Reply-To: <CAOMZO5BXRhc4hV52hnBDRL1nr1SnnTumf_8S2cHOGovVJF+yBA@mail.gmail.com>

+Russell, Mike

On 24 March 2016 at 18:50, Fabio Estevam <festevam@gmail.com> wrote:
> On Thu, Mar 24, 2016 at 2:45 PM, Laszlo Fiat <laszlo.fiat@gmail.com> wrote:
>> Hello,
>>
>> The original issue I reported on 17 Feb is that the SDIO WIFI card is
>> not detected with 4.5RC and now mainline 4.5.0 kernel on baytrail
>> tablets.
>> BzukTuk commented on the bug report, that he has bisected the problem,
>> and found that reverting  patch
>> 520bd7a8b4152aacfbd34eb7f7a447354b631039 ("mmc: core:
>> Optimize boot time by detecting cards simultaneously")  solves the problem.
>> I tested this, by compiling a 4.5.0 kernel with that patch reverted,
>> and the SDIO WiFi works that way.
>
> Adding Ulf on Cc.

>From earlier discussions [1], it seems like Russell pointed out a mmc
pwrseq related bug, but there seems to be yet another issue here.

The bisected bad commit 520bd7a8b415 ("mmc: core: Optimize boot time
by detecting cards simultaneously"), affects the timing and then maybe
also the order of how cards (mmc, sd, sdio) may be detected.

More precisely SD/(e)MMC cards may get different block ids (mmcblk[n])
than they had before. According the information from the logs in
bugzilla [2], a qualified guess is that the firmware to the SDIO WLAN
chip is loaded from an hardcoded path. Since that path gets changed,
the firmware can't be found and loaded, right?

So, just to be clear, there has *never* been any deterministic way to
always get the same mmc block id for a card. If hardcoded paths have
worked, it's because of luck! Let me elaborate a bit on that.

Earlier and with commit 520bd7a8b415, the probe order (a successful
probe) of the mmc host device and whether removable cards are present
or not, affects the mmc block id. The change that commit 520bd7a8b415
introduces is that card detection can now happen simultaneously, thus
it adds another parameter that affects the mmc block id.

Unless I am mistaken, the hard coded paths should be fixed to use
UUID/PARTUUID in favour of reverting 520bd7a8b415.

Kind regards
Uffe

[1]
http://comments.gmane.org/gmane.linux.kernel.mmc/36045

[2]
https://bugzilla.kernel.org/show_bug.cgi?id=112571

  reply	other threads:[~2016-03-29 10:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17 18:06 SDIO wifi card is not detected with 4.5-rc kernels Laszlo Fiat
2016-02-17 18:41 ` Fabio Estevam
2016-02-17 21:18   ` Russell King - ARM Linux
2016-02-17 22:03     ` Michael Turquette
2016-02-17 22:11       ` Russell King - ARM Linux
2016-02-17 22:59         ` Michael Turquette
2016-02-17 23:02         ` Russell King - ARM Linux
2016-02-17 23:35           ` Russell King - ARM Linux
2016-03-24 17:45 ` Laszlo Fiat
2016-03-24 17:50   ` Fabio Estevam
2016-03-29 10:31     ` Ulf Hansson [this message]
2016-03-29 18:24       ` Laszlo Fiat

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='CAPDyKFq74ppimCo0AGgqdtT=C-41y6LKZHELSpJXvDaSdTT=1A@mail.gmail.com' \
    --to=ulf.hansson@linaro.org \
    --cc=festevam@gmail.com \
    --cc=laszlo.fiat@gmail.com \
    --cc=linux-mmc@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=rmk+kernel@arm.linux.org.uk \
    /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).