mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pierre Ossman <drzeus@drzeus.cx>
To: "Kim Hansen" <kimhanse@gmail.com>
Cc: "Alex Dubov" <oakad@yahoo.com>, linux-kernel@vger.kernel.org
Subject: Re: tifm_7xx1: SD card is ignored
Date: Wed, 21 May 2008 14:21:24 +0200	[thread overview]
Message-ID: <20080521142124.3e43eea4@mjolnir.drzeus.cx> (raw)
In-Reply-To: <c878e2290805070950o260fbb77m27407a483af9dbc9@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1398 bytes --]

On Wed, 7 May 2008 18:50:54 +0200
"Kim Hansen" <kimhanse@gmail.com> wrote:

> Now it just looks like it sometimes work and other times don't, on
> some kernels it works on 80% inserts and on other it only works on 5%.
> This means that the problem most likely has not been fixed between
> 2.6.24 and 2.6.25, it was just a coincidence that it worked on on and
> not the other the first few times I tested it.

I missed the start of this, but I assume it is just the one card that
exhibits this craziness?

> I have captured some logs now, there is logs of a successful insert
> and remove, and of an unsuccessful.
> 
> Successful  insert: 16:18:50   remove:  16:20:26
> Unsuccessful insert:  16:21:38  remove:  16:21:47
> 
> The log can be found at: http://i9.dk/~kim/mmc-log.txt.bz2
> 
> This is the part from the unsuccessful insert:

*snip*

> sdhci [sdhci_irq()]: *** sdhci:slot0 got interrupt: 0x00000001
> mmc0: req done (CMD5): 0: ffffffff 00000000 00000000 00000000

What can I say, the card thinks it's an SDIO card. :)

The question is why. Might be some shoddy wiring between the card and
the controller that causes some unlucky misinterpretations. Might also
be that the card needs some increased delay to function correctly. Try
adding:

	msleep(500);

to mmc_rescan() in drivers/mmc/core/core.c. Put it right after
mmc_power_up().

Rgds
Pierre

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  parent reply	other threads:[~2008-05-21 12:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-27 10:59 Kim Hansen
2008-04-27 15:47 ` Alex Dubov
2008-04-28 20:43   ` Kim Hansen
2008-04-28 23:55     ` Alex Dubov
2008-05-06 17:56     ` Kim Hansen
2008-05-07 13:21       ` Alex Dubov
2008-05-07 16:50         ` Kim Hansen
2008-05-07 18:28           ` Kim Hansen
2008-05-21 12:21           ` Pierre Ossman [this message]
2008-05-23  9:32             ` Kim Hansen

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=20080521142124.3e43eea4@mjolnir.drzeus.cx \
    --to=drzeus@drzeus.cx \
    --cc=kimhanse@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oakad@yahoo.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

Powered by JetHome