public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: aaron.lu@amd.com (Aaron Lu)
To: linux-arm-kernel@lists.infradead.org
Subject: confusion regarding the CMD19 and CMD21 in eMMC/SD card spec
Date: Fri, 16 Sep 2011 12:47:08 +0800	[thread overview]
Message-ID: <20110916044706.GA4030@lovegaga> (raw)
In-Reply-To: <CAGxe1ZG4QjwB5OfrxupG_C+DtQ7sTQ4_EURaF-QrqPPSA3A0jw@mail.gmail.com>

On Fri, Sep 16, 2011 at 09:41:04AM +0530, Girish K S wrote:
> but there is only one host controller to handle these commands.
> the generic sdhci driver has cmd19 hard coded, thats the reason I
> asked the question.
> you can also check it in the function sdhci_execute_tuning it is hard coded as
> cmd.opcode = MMC_SEND_TUNING_BLOCK; where the macro value is 19.
> So in case of SD card insertion it will send a SEND_TUNING_BLOCK
> command to the device. but if
> MMC card is inserted then it will send a BUS_TEST_W command to the device.

sdhci_execute_tuning will only be called if the inserted card is a sd card
and it is operating at SDR104 or SDR50 mode(UHS-I).

The host's tuning function is called from the mmc_sd_init_uhs_card,
and for a mmc card, there is no chance of that function being called.

-Aaron

  reply	other threads:[~2011-09-16  4:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-15 11:58 confusion regarding the CMD19 and CMD21 in eMMC/SD card spec Girish K S
2011-09-15 16:23 ` Philip Rakity
2011-09-16  4:11   ` Girish K S
2011-09-16  4:47     ` Aaron Lu [this message]
2011-09-16  5:30       ` Girish K S
2011-09-16  5:57         ` Aaron Lu
2011-09-16  6:14           ` Girish K S

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=20110916044706.GA4030@lovegaga \
    --to=aaron.lu@amd.com \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox