From: Chris Ball <cjb@laptop.org>
To: Philip Rakity <prakity@marvell.com>
Cc: "linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
Mark Brown <markb@marvell.com>
Subject: Re: [PATCH] mmc: core: add comment why sdio_reset is done at init time
Date: Thu, 24 Feb 2011 18:41:21 +0000 [thread overview]
Message-ID: <20110224184121.GA11663@void.printf.net> (raw)
In-Reply-To: <1091D46E-68D9-49FC-BBA6-6908BC1835AD@marvell.com>
Hi Philip,
On Sun, Feb 13, 2011 at 11:12:28PM -0800, Philip Rakity wrote:
>
> sdio_reset sends a CMD52 to reset the sdio card. This is
> highly recommended for sdio cards being reinitialized. Since
> we do not know if the card is being reinitialized we just send
> the command. SD/eMMC cards are supposed to ignore the CMD
> before the CMD0. Document why we are doing this.
>
> Signed-off-by: Philip Rakity <prakity@marvell.com>
> ---
> drivers/mmc/core/core.c | 6 ++++++
> 1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
> index 34a7e8c..d9fb0d3 100644
> --- a/drivers/mmc/core/core.c
> +++ b/drivers/mmc/core/core.c
> @@ -1494,6 +1494,12 @@ static int mmc_rescan_try_freq(struct mmc_host *host, unsigned freq)
> mmc_hostname(host), __func__, host->f_init);
> #endif
> mmc_power_up(host);
> +
> + /*
> + * sdio_reset sends CMD52 to reset card. Since we do not know
> + * if the card is being re-initialzed just send it. CMD52
> + * should be ignored by SD/eMMC cards
> + */
> sdio_reset(host);
> mmc_go_idle(host);
>
Thanks, pushed to mmc-next for .39.
--
Chris Ball <cjb@laptop.org> <http://printf.net/>
One Laptop Per Child
prev parent reply other threads:[~2011-02-24 18:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-14 7:12 [PATCH] mmc: core: add comment why sdio_reset is done at init time Philip Rakity
2011-02-24 18:41 ` Chris Ball [this message]
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=20110224184121.GA11663@void.printf.net \
--to=cjb@laptop.org \
--cc=linux-mmc@vger.kernel.org \
--cc=markb@marvell.com \
--cc=prakity@marvell.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 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.