All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarkko Lavinen <jarkko.lavinen@nokia.com>
To: linux-kernel@vger.kernel.org
Subject: CMD7 failing on ATP & Transcend MMC cards
Date: Mon, 3 Oct 2005 16:54:45 +0300	[thread overview]
Message-ID: <20051003135445.GA6560@angel.research.nokia.com> (raw)

Some MMC cards were failing repeatedly on Omap1710 in the card 
select command CMD7.  Doing an extra status inquiry when leaving the card 
identification mode removed the problem.  This is possibly Omap1710 mmc 
controller only problem, but might also also appear on other mmc 
controllers.

So far, the problem occured only on ATP and Transcend cards when the card 
have already been detected and then mmc_detect_change() is called to
check if any new cards have been inserted.  After CMD2 the next card 
select command CMD7 fails due to illegal command error.

I don't know why only ATP and Transcend have this problem and why
doing status inquiry CMD13 helps.  Status inquiry command is neutral
and is claimed to not change the card state in the MMC spec. :-)

The order of commands must be CMD13 first, then CMD7.  CMD13 fails
also due to illegal instruction error after CMD2 but after this the
card is back to its senses.

If CMD7 is run first, and CMD13 once CMD7 is seen failing, this fails
to bring the card back to its senses.  Then the CMD7 fails repeatedly
due to command timeout before and after CMD13.

I got rid of the problem by simply adding call to mmc_check_cards()
at and of mmc_setup() function, which is perhaps an overkill. One could do
it also in mmc_rescan() after switching back to higher clock.

Jarkko Lavinen

             reply	other threads:[~2005-10-03 13:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-03 13:54 Jarkko Lavinen [this message]
2005-10-03 14:02 ` CMD7 failing on ATP & Transcend MMC cards Russell King
2005-10-04 13:21   ` Jarkko Lavinen

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=20051003135445.GA6560@angel.research.nokia.com \
    --to=jarkko.lavinen@nokia.com \
    --cc=linux-kernel@vger.kernel.org \
    /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.