All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: CMD7 failing on ATP & Transcend MMC cards
Date: Mon, 3 Oct 2005 15:02:52 +0100	[thread overview]
Message-ID: <20051003140252.GG16717@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20051003135445.GA6560@angel.research.nokia.com>

On Mon, Oct 03, 2005 at 04:54:45PM +0300, Jarkko Lavinen wrote:
> 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'm not surprised.  CMD2 is part way through the initialisation
sequence, so no one should be sending a CMD7.

After a CMD2, the next expected command is a CMD3 for MMC cards (maybe
not SD cards).

Given the code, I don't see how you can possibly be sending a CMD7
before the initialisation has completed.  You need to find out why
a CMD7 is being sent after CMD2.

> 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.

This is not a fix.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

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

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-03 13:54 CMD7 failing on ATP & Transcend MMC cards Jarkko Lavinen
2005-10-03 14:02 ` Russell King [this message]
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=20051003140252.GG16717@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --cc=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.